23 Commits
Author SHA1 Message Date
Sash 835111c832 fix: treat IPv6 and shared-space addresses as internal (#357)
IsInternalIP returned false for unique-local and link-local IPv6, for
100.64.0.0/10, and for NAT64, 6to4, and Teredo addresses that carry an
internal IPv4 address.

Fixes #356
2026-10-13 11:00:26 +08:00
dudaodong fc7f2509ca fix: fix issue #314 2025-06-23 11:31:54 +08:00
dudaodong 0ef45b533b fix: fix issue #292, change query params type to map[string][]string 2025-03-28 14:00:11 +08:00
dudaodong 5b9543255a feat: add AddQueryParams 2025-03-15 14:52:49 +08:00
dudaodong bf859387f4 feat: add BuildUrl 2025-03-15 14:25:03 +08:00
dudaodong 8229de2f10 test: add parallel running for all unit test functions 2023-06-30 10:18:45 +08:00
dudaodong 4888909208 fix: fix IsPingConnected failed in windows 2023-04-26 19:53:53 +08:00
dudaodong 4311b9ac66 test: remove t.Log() 2023-04-26 14:59:45 +08:00
dudaodong 48c17ea1ce fix: update params in TestIsPingConnected 2023-04-19 17:40:55 +08:00
dudaodong e90283c3f9 fix: update params in TestIsPingConnected 2023-04-19 17:35:17 +08:00
dudaodong f82c4a305d fix: update params in TestIsPingConnected 2023-04-19 17:32:30 +08:00
dudaodong 05997603a9 doc: add document for DownloadFile and UploadFile 2023-04-19 16:16:47 +08:00
dudaodong 6d5ec807f7 test: comment some test case 2023-04-19 16:04:35 +08:00
dudaodong 9f68620b37 feat: add IsPingConnected and IsTelnetConnected 2023-04-19 11:13:21 +08:00
dudaodong 506a8b4776 feat: add EncodeUrl function 2022-07-15 16:29:41 +08:00
tangqiu0205andzhanghu 957878dd98 feat: add func GetRequestPublicIp and IsInternalIP (#40)
* add: add func GetRequestPublicIp and IsInternalIP

* fix: fix test fileutil fail

Co-authored-by: zhanghu <305835360@qq.com>
2022-07-13 09:52:35 +08:00
dudaodong 50c6e51393 upgrade go module v2 2022-03-17 10:57:35 +08:00
dudaodong 40c2402493 feat: add func GetIps and GetMacAddrs 2022-02-15 17:38:09 +08:00
dudaodong 52c5a91606 refactor: rewrite all unit test functions with assert 2022-01-09 15:57:21 +08:00
dudaodong 49f62c3550 refactor: rewrite all unit test functions with assert 2022-01-09 15:53:30 +08:00
dudaodong c625a88067 refactor: rename package 'utils' to 'internal' 2021-12-31 11:36:11 +08:00
dudaodong 0c4b512084 fmt: fix some gofmt issue 2021-11-29 13:01:46 +08:00
dudaodong 3254591ab9 publish lancet 2021-11-28 21:28:23 +08:00