David Kerr
cde60432dd
Remove from debug message in geturl() parameters sent as part of a URL
2020-08-12 12:53:59 -04:00
David Kerr
8106b3025f
Add support to use WWW::Curl::Easy if it exists
2020-08-07 11:17:44 -04:00
David Kerr
d24b75960d
Add support for curl and option to not validate SSL certificates for getip from web or firewall
...
Check exists not just length
2020-08-07 11:17:44 -04:00
Richard Hansen
2de6a02f14
New %builtinweb
entries for nsupdate.info
2020-08-04 13:58:51 -04:00
Richard Hansen
c9b6c8b3bf
New %builtinweb
entries for whatismyv6.com
2020-08-04 13:57:07 -04:00
Richard Hansen
ae89dbdfa3
New %builtinweb
entry for Hurricane Electric
2020-08-04 13:54:49 -04:00
Richard Hansen
fb42a50318
New %builtinweb
entry for ZoneEdit
2020-08-04 13:51:26 -04:00
Richard Hansen
460cf2f465
New %builtinweb
entry for FreeDNS
2020-08-04 13:51:26 -04:00
Richard Hansen
1a8bfafb3d
New %builtinweb
entry for Google Domains
2020-08-04 13:51:26 -04:00
Richard Hansen
ad81aa43d2
New %builtinweb
entries for noip.com
2020-08-04 13:51:26 -04:00
Richard Hansen
295ba387aa
Rename ipifyipv{4,6}
to ipify-ipv{4,6}
...
The added dash makes it easier to read.
2020-08-04 13:51:26 -04:00
Richard Hansen
f3a92fbe63
Delete trailing commas
2020-08-04 13:46:21 -04:00
Richard Hansen
deab8970a1
Whitespace fixes
2020-08-04 13:46:21 -04:00
Richard Hansen
601460c0b3
Turn if-skip
into a no-op and mark it as deprecated
...
There is no way the user can meaningfully set `if-skip` because the
user doesn't have control over how ddclient reads an interface's
settings (ddclient could theoretically run `ip addr show`, run
`ifconfig`, read a file in `/dev`, make a system call, use a Perl
library, etc.).
2020-08-03 12:55:38 -04:00
Richard Hansen
686bf5a8c8
Improve -help
text
2020-08-02 23:38:46 -04:00
Richard Hansen
4bf9d59722
Whitespace fixes
2020-08-02 21:52:11 -04:00
David Kerr
1ad4d6737a
Add is_ipv6_global and extract_ipv6_global functions
2020-08-01 19:11:28 -04:00
Richard Hansen
25a636879f
Change the default server for dslreports1
to www.dslreports.com
...
Before, it defaulted to `members.dyndns.org` which didn't make much
sense.
2020-08-01 16:22:38 -04:00
Richard Hansen
f8185182e9
Add new device built-ins (fw=<device>
)
...
Thanks goes to Geoff Simmons, who provided the definitions in
https://bugs.debian.org/589980 .
2020-07-27 12:23:35 -04:00
Sandro
2e1bb5165a
Merge pull request #254 from rhansen/geturl
...
Eliminate unnecessary hashref
2020-07-22 10:56:17 +02:00
Richard Hansen
ae7919fcc4
Mark gandi
protocol's ttl
var as optional
...
Gandi doesn't require a TTL in the update request. The protocol
implementation already does the right thing if the `ttl` var is
`undef`.
2020-07-18 15:05:53 -04:00
Jimmy Thrasibule
7f719dc305
Add support for Gandi LiveDNS
...
Allow update of a DNS record hosted by the Gandi LiveDNS service.
Signed-off-by: Jimmy Thrasibule <jimmy.thrasibule@orange.com>
Reviewed-by: Richard Hansen <rhansen@rhansen.org>
2020-07-18 15:01:52 -04:00
Jimmy Thrasibule
b6a7c44d39
Ensure header_ok accept any 2xx return code
...
Adapt `header_ok` to return success for any HTTP 2xx code.
Signed-off-by: Jimmy Thrasibule <jimmy.thrasibule@orange.com>
Reviewed-by: Richard Hansen <rhansen@rhansen.org>
2020-07-18 15:01:52 -04:00
Richard Hansen
286fe02478
Fix -daemon
command-line argument parsing
...
It turns out the logic removed in
d10601de11
had a purpose after all.
2020-07-14 23:17:19 -04:00
Richard Hansen
7d58f2d749
Import IO::Socket::INET
...
We've always required IO::Socket::INET but never explicitly included
it. For some reason that hasn't been a problem until now.
Fixes #255
2020-07-12 18:58:31 -04:00
Richard Hansen
5f1dacc3bd
Eliminate unnecessary hashref
...
Pass the key-value pairs directly instead of via a hashref.
2020-07-11 21:39:48 -04:00
David Kerr
29202f5bc1
New is_ipv6 and extract_ipv6 algorithms
...
Also add unit tests.
2020-07-11 11:04:47 -04:00
David Kerr
92c1294af9
Accept leading zeros in IPv4 addresses
...
Also add unit tests.
2020-07-11 11:04:33 -04:00
Richard Hansen
dd8e376784
Add geturl
SSL tests
...
These don't test validation, only that IO::Socket::SSL is used.
2020-07-08 13:40:31 -04:00
Richard Hansen
6ff0362450
Get the AF_INET and friends constants from Socket
...
Apparently it is enough to simply import Socket or IO::Socket to use
AF_INET and friends, but all examples in official documentation show
them in the import list. Because I do not fully understand the
intricacies of Perl import logic, I do the same thing here, fully
aware that I might have joined a cargo cult. Regardless of its
correctness or necessity, listing the constants in the import list has
the advantage of making it clear why the `use` statement exists.
I chose to import the constants from Socket instead of IO::Socket
because that module's documentation explicitly documents the
constants.
2020-07-07 20:55:32 -04:00
Sandro
ee4191f865
Merge pull request #225 from reetp/master
...
Add DinaHosting
2020-07-07 10:15:32 +02:00
Sandro
f0c583890a
Merge pull request #246 from rhansen/unwrap
...
Unwrap unnecessarily wrapped lines
2020-07-07 10:11:37 +02:00
Sandro
b0b04aa278
Merge pull request #247 from rhansen/parse_assignments
...
Simplify `parse_assignments`
2020-07-07 10:11:21 +02:00
Sandro
eac5d25e47
Merge pull request #245 from rhansen/continue-on-failure
...
Don't skip updates to remaining hosts if one host fails
2020-07-07 10:10:42 +02:00
Sandro
9d7af91bf4
Merge pull request #242 from rhansen/mkdir-var-cache
2020-07-07 10:09:47 +02:00
Sandro
666fc293fb
Merge pull request #243 from rhansen/delete-fw-debug
...
Delete out-of-place debug messages
2020-07-07 10:08:49 +02:00
Richard Hansen
71acd749a1
Simplify parse_assignments
2020-07-07 00:10:33 -04:00
Richard Hansen
c3de24bb49
Unwrap unnecessarily wrapped lines
2020-07-07 00:09:44 -04:00
Richard Hansen
bdf8835904
Don't skip updates to remaining hosts if one host fails
2020-07-07 00:08:56 -04:00
Richard Hansen
ee8e1e8844
Don't abort if unable to write the cache file
2020-07-07 00:04:33 -04:00
Richard Hansen
6ae5fe62d7
Create /var/cache/ddclient
if it doesn't exist
...
Fixes #76
2020-07-07 00:04:33 -04:00
Richard Hansen
df3c777e11
Delete out-of-place debug messages
...
Neither `opt('fw')` nor `$globals{'fw'}` are used in `geturl` so
delete the debug messages showing their values.
2020-07-07 00:03:56 -04:00
John Crisp
e2c3f9dd04
Add support for dinahosting
...
Fixes #203
2020-07-07 00:00:45 -04:00
Richard Hansen
231306395a
Test for definedness or emptiness, not truthiness
...
Use `//` or `eq ''` for tests to avoid treating the string `'0'` as
false.
2020-07-06 23:58:51 -04:00
Richard Hansen
03dffae74e
Honor the ssl
option for the web
URL
2020-07-06 20:20:01 -04:00
Richard Hansen
7921c53605
Explicitly tell geturl
to ignore the global ssl
option
...
Changing behavior based on the identity of the caller is fragile and
makes the code difficult to understand.
2020-07-06 20:19:27 -04:00
Richard Hansen
2e5db5af44
Fix detection of get_ip
caller
...
This was broken in f6f920eb39
.
2020-07-06 17:14:08 -04:00
Sandro Jäckel
b7e7d27a24
Remove dtdns
2020-07-06 15:59:55 +02:00
Sandro Jäckel
12a4a10c9c
Remove hammernode1
2020-07-06 15:57:52 +02:00
Richard Hansen
323208e9cc
Add geturl
connectivity unit tests
...
Addresses #232
2020-07-05 18:36:46 -04:00