77 Commits

Author SHA1 Message Date
Quentin McGaw
18a5493345 chore(ci): bump linter to v2.4.0 2026-01-13 17:24:15 +00:00
Quentin McGaw
691ed320fd chore(lint): add new linters fatcontext, intrange and mirror 2024-10-20 13:15:20 +00:00
Quentin McGaw
05d566c807 chore(all): format code using gofumpt 2024-10-20 13:12:33 +00:00
Quentin McGaw
4c7c794494 chore(lint): upgrade linter from v1.56.2 to v1.61.0 2024-10-20 13:10:31 +00:00
Quentin McGaw
623cb536e1 fix(publicip/http): remove google provider which no longer works 2024-09-17 07:39:00 +00:00
Quentin McGaw
2f2bef3d6c feat(publicip): add changeip ipv4v6 echo service 2024-06-15 10:24:17 +00:00
Quentin McGaw
85780dc6e1 chore(lint): add multiple linters 2024-06-13 09:23:19 +00:00
Quentin McGaw
8e802d45ae chore(lint): upgrade to v1.56.2 2024-06-13 09:10:33 +00:00
Quentin McGaw
6a6b1a8ebb feat(pkg/publicip/info): add ip2location.io provider 2024-02-13 10:42:07 +00:00
Quentin McGaw
346f4aa7f7 feat(publicip/http): add seeip.org for all ip versions 2024-02-13 10:35:59 +00:00
Quentin McGaw
5e0e3f4702 feat(publicip/http): add multiple providers for all IP versions
- icanhazip
- ident
- nnev
- wtfismyip
2024-02-13 10:33:34 +00:00
Quentin McGaw
133956f082 feat(publicip): better error messages stating the provider type if unknown 2024-02-04 14:42:24 +00:00
Quentin McGaw
85b64cbeeb feat(publicip/http): add ipleak support for all IP versions 2024-02-03 09:16:33 +00:00
Quentin McGaw
2afec6c0ac feat(publicip/http): add Spdyn provider 2024-02-03 08:13:37 +00:00
Quentin McGaw
c494662976 fix(publicip): remove noip due to only http availability 2024-02-02 15:51:07 +00:00
Quentin McGaw
875cd027d7 fix(publicip/dns): use address of Cloudflare for ipv4 or ipv6 2024-01-31 14:31:35 +00:00
Quentin McGaw
dc2b7aaa0b chore(publicip/dns): set dial timeout to fetcher timeout 2024-01-31 14:18:07 +00:00
Quentin McGaw
816406dc41 feat(publicip/http): add api64.ipify.org 2024-01-31 14:18:02 +00:00
Quentin McGaw
0c98229588 hotfix(publicip/dns): fix error for unsupported any answer 2023-06-17 13:57:41 +00:00
Quentin McGaw
320d91d8e3 change(publicip/dns): use DNS over TLS only
- Fix critical issue #492
- Remove `google` dns provider since it does not support DNS over TLS
2023-06-17 13:57:41 +00:00
Quentin McGaw
baacd052ce fix(publicip/http): remove opendns option 2023-06-13 14:41:37 +00:00
Quentin McGaw
c12b7e50d7 feat(pkg/publicip/dns): add opendns option 2023-06-13 14:41:35 +00:00
Quentin McGaw
954dffd3a7 fix(ipv6): replace bad regex with custom IPv6 extract function
- Fix HTTP IPv6 fetching invalid extraction result
- Affects IPv6 comparison for allinkl, dnsomatic, google, he and noip
2023-06-13 07:16:55 +00:00
Quentin McGaw
9a4a268926 chore(all): migrate from net.IP* to net/netip 2023-06-12 09:48:43 +00:00
Quentin McGaw
05b2535fee chore(pkg/publicip/info): remove dependency on qdm12/golibs 2023-06-08 18:15:41 +00:00
Quentin McGaw
c39df2796f chore(ci): add mocks check step 2023-06-07 09:17:38 +00:00
Quentin McGaw
15c6ad4b01 chore(all): use string comparisons instead of length for string variables 2023-04-13 16:58:33 +00:00
Quentin McGaw
3339c838fa chore(all): remove short if error checks 2023-04-13 15:38:05 +00:00
Quentin McGaw
d8de9d25ad feat(pkg/publicip): blacklist providers banning us 2022-11-03 09:45:01 +00:00
Quentin McGaw
ba8cd00326 feat(pkg): pkg/publicip/info package (#189) 2022-11-03 04:32:11 -04:00
Quentin McGaw
bcbf0938c1 chore(lint): add revive linter and fix issues
- Export returned struct types
- Do not export interfaces for other packages to use
2022-08-28 22:18:19 +00:00
Quentin McGaw
1561babd76 chore(lint): add ireturn linter
- Return concrete structs
- Accept interfaces
- Define narrow interfaces locally where needed
2022-08-28 19:50:02 +00:00
Quentin McGaw
45c684232d chore(lint): ignore dupl linter for test files 2022-08-28 19:21:43 +00:00
Quentin McGaw (desktop)
bc1a5b206f Fix: DNS public IP fetching timeout 2021-07-02 18:30:42 +00:00
Quentin McGaw (desktop)
d22dc41903 Maint: pubip: default timeout to 3s for DNS 2021-06-29 20:32:00 +00:00
Quentin McGaw
398566850d Fix custom URL for HTTP ip method (fix #203) 2021-05-22 19:42:07 +00:00
Quentin McGaw
b1a3740059 Maintenance: use io instead of ioutil if possible 2021-05-20 15:27:54 +00:00
Quentin McGaw
844904aa7b Maintenance: upgrade linting setup
- Update Golangci-lint to v1.40.1
- Add more linters
- Remove rules from .golangci.yml in favor of inline nolint comments
- Fix linting errors
2021-05-19 01:00:42 +00:00
Quentin McGaw
106bcae966 Maintenance: simplify top level publicip package API (#186) 2021-03-21 21:49:47 -04:00
Quentin McGaw
0a89666d1d Feature: public IP package to work over HTTPs and DNS (#158) 2021-03-21 17:59:17 -04:00
Quentin McGaw
46766b440e Refactor code with golibs (#23)
* Refactored but unstable

* Fixed bad parsing of custom delay
2019-11-28 13:43:55 -05:00
Quentin McGaw (desktop)
a0f9ab1552 Removed \r new lines 2019-10-26 23:34:26 +00:00
Quentin McGaw
cc0397912f Fixes #18 2019-09-10 10:48:01 -04:00
Quentin McGaw
19f275ac03 Gotify support (#17)
* Added Gotify support and notifications

* Readme update for Gotify
2019-09-06 13:33:31 -04:00
Quentin McGaw
3c30ac4264 Added Uber zap for logging instead of custom package 2019-08-28 13:09:55 -04:00
Quentin McGaw
9ca6087cf4 Removed support for opendns (fixes #14) 2019-08-24 13:55:16 -04:00
王文慧
b650a46fd8 update dnspod setting (#13) 2019-08-21 08:04:03 -04:00
王文慧
309f76a87b add dnspod provider (#12) 2019-08-16 11:25:11 -04:00
Fero
5797810ae4 Correcting repeating prefix length for GoDaddy key (#11)
- Operating Test Environment (OTE) key prefixes are 14 characters
- Production key prefixes are 10 characters
2019-07-20 17:33:33 -04:00
Quentin McGaw
e4201d292b Small error treatment fix 2019-06-25 20:26:14 +02:00