Whitespace fixes
This commit is contained in:
parent
5620127c71
commit
9c5160a514
3 changed files with 118 additions and 122 deletions
74
README.md
74
README.md
|
@ -13,43 +13,43 @@ your dynamic DNS provider(s): <https://github.com/troglobit/inadyn> or
|
|||
|
||||
Dynamic DNS services currently supported include:
|
||||
|
||||
* [1984.is](https://www.1984.is/product/freedns)
|
||||
* [ChangeIP](https://www.changeip.com)
|
||||
* [CloudFlare](https://www.cloudflare.com)
|
||||
* [ClouDNS](https://www.cloudns.net)
|
||||
* [DDNS.fm](https://www.ddns.fm/)
|
||||
* [DigitalOcean](https://www.digitalocean.com/)
|
||||
* [dinahosting](https://dinahosting.com)
|
||||
* [DonDominio](https://www.dondominio.com)
|
||||
* [DNS Made Easy](https://dnsmadeeasy.com)
|
||||
* [DNSExit](https://dnsexit.com/dns/dns-api)
|
||||
* [dnsHome.de](https://www.dnshome.de)
|
||||
* [Domeneshop](https://api.domeneshop.no/docs/#tag/ddns/paths/~1dyndns~1update/get)
|
||||
* [DslReports](https://www.dslreports.com)
|
||||
* [Duck DNS](https://duckdns.org)
|
||||
* [DynDNS.com](https://account.dyn.com)
|
||||
* [EasyDNS](https://www.easydns.com )
|
||||
* [Enom](https://www.enom.com)
|
||||
* [Freedns](https://freedns.afraid.org)
|
||||
* [Freemyip](https://freemyip.com)
|
||||
* [Gandi](https://gandi.net)
|
||||
* [GoDaddy](https://www.godaddy.com)
|
||||
* [Hurricane Electric](https://dns.he.net)
|
||||
* [Infomaniak](https://faq.infomaniak.com/2376)
|
||||
* [INWX](https://www.inwx.com/)
|
||||
* [Loopia](https://www.loopia.se)
|
||||
* [Mythic Beasts](https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns)
|
||||
* [NameCheap](https://www.namecheap.com)
|
||||
* [NearlyFreeSpeech.net](https://www.nearlyfreespeech.net/services/dns)
|
||||
* [Njalla](https://njal.la/docs/ddns)
|
||||
* [Noip](https://www.noip.com)
|
||||
* nsupdate - see nsupdate(1) and ddns-confgen(8)
|
||||
* [OVH](https://www.ovhcloud.com)
|
||||
* [Porkbun](https://porkbun.com)
|
||||
* [regfish.de](https://www.regfish.de/domains/dyndns)
|
||||
* [Sitelutions](https://www.sitelutions.com)
|
||||
* [Yandex](https://dns.yandex.com)
|
||||
* [Zoneedit](https://www.zoneedit.com)
|
||||
* [1984.is](https://www.1984.is/product/freedns)
|
||||
* [ChangeIP](https://www.changeip.com)
|
||||
* [CloudFlare](https://www.cloudflare.com)
|
||||
* [ClouDNS](https://www.cloudns.net)
|
||||
* [DDNS.fm](https://www.ddns.fm/)
|
||||
* [DigitalOcean](https://www.digitalocean.com/)
|
||||
* [dinahosting](https://dinahosting.com)
|
||||
* [DonDominio](https://www.dondominio.com)
|
||||
* [DNS Made Easy](https://dnsmadeeasy.com)
|
||||
* [DNSExit](https://dnsexit.com/dns/dns-api)
|
||||
* [dnsHome.de](https://www.dnshome.de)
|
||||
* [Domeneshop](https://api.domeneshop.no/docs/#tag/ddns/paths/~1dyndns~1update/get)
|
||||
* [DslReports](https://www.dslreports.com)
|
||||
* [Duck DNS](https://duckdns.org)
|
||||
* [DynDNS.com](https://account.dyn.com)
|
||||
* [EasyDNS](https://www.easydns.com )
|
||||
* [Enom](https://www.enom.com)
|
||||
* [Freedns](https://freedns.afraid.org)
|
||||
* [Freemyip](https://freemyip.com)
|
||||
* [Gandi](https://gandi.net)
|
||||
* [GoDaddy](https://www.godaddy.com)
|
||||
* [Hurricane Electric](https://dns.he.net)
|
||||
* [Infomaniak](https://faq.infomaniak.com/2376)
|
||||
* [INWX](https://www.inwx.com/)
|
||||
* [Loopia](https://www.loopia.se)
|
||||
* [Mythic Beasts](https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns)
|
||||
* [NameCheap](https://www.namecheap.com)
|
||||
* [NearlyFreeSpeech.net](https://www.nearlyfreespeech.net/services/dns)
|
||||
* [Njalla](https://njal.la/docs/ddns)
|
||||
* [Noip](https://www.noip.com)
|
||||
* nsupdate - see nsupdate(1) and ddns-confgen(8)
|
||||
* [OVH](https://www.ovhcloud.com)
|
||||
* [Porkbun](https://porkbun.com)
|
||||
* [regfish.de](https://www.regfish.de/domains/dyndns)
|
||||
* [Sitelutions](https://www.sitelutions.com)
|
||||
* [Yandex](https://dns.yandex.com)
|
||||
* [Zoneedit](https://www.zoneedit.com)
|
||||
|
||||
`ddclient` supports finding your IP address from many cable and DSL
|
||||
broadband routers.
|
||||
|
|
|
@ -26,8 +26,8 @@ syslog=yes # log update msgs to syslog
|
|||
mail=root # mail all msgs to root
|
||||
mail-failure=root # mail failed update msgs to root
|
||||
pid=@runstatedir@/ddclient.pid # record PID in file.
|
||||
# postscript=script # run script after updating. The
|
||||
# new IP is added as argument.
|
||||
# postscript=script # run script after updating. The new IP is
|
||||
# added as argument.
|
||||
#
|
||||
#use=watchguard-soho, fw=192.168.111.1:80 # via Watchguard's SOHO FW
|
||||
#use=netopia-r910, fw=192.168.111.1:80 # via Netopia R910 FW
|
||||
|
@ -169,12 +169,12 @@ pid=@runstatedir@/ddclient.pid # record PID in file.
|
|||
##
|
||||
## CloudFlare (www.cloudflare.com)
|
||||
##
|
||||
#protocol=cloudflare, \
|
||||
#zone=domain.tld, \
|
||||
#ttl=1, \
|
||||
#login=your-login-email, \ # Only needed if you are using your global API key. If you are using an API token, set it to "token" (without double quotes).
|
||||
#password=APIKey \ # This is either your global API key, or an API token. If you are using an API token, it must have the permissions "Zone - DNS - Edit" and "Zone - Zone - Read". The Zone resources must be "Include - All zones".
|
||||
#domain.tld,my.domain.tld
|
||||
# protocol=cloudflare, \
|
||||
# zone=domain.tld, \
|
||||
# ttl=1, \
|
||||
# login=your-login-email, \ # Only needed if you are using your global API key. If you are using an API token, set it to "token" (without double quotes).
|
||||
# password=APIKey \ # This is either your global API key, or an API token. If you are using an API token, it must have the permissions "Zone - DNS - Edit" and "Zone - Zone - Read". The Zone resources must be "Include - All zones".
|
||||
# domain.tld,my.domain.tld
|
||||
|
||||
##
|
||||
## Gandi (gandi.net)
|
||||
|
@ -244,23 +244,23 @@ pid=@runstatedir@/ddclient.pid # record PID in file.
|
|||
##
|
||||
## nsupdate.info IPV4(https://www.nsupdate.info)
|
||||
##
|
||||
#use=web, web=http://ipv4.nsupdate.info/myip
|
||||
#protocol=dyndns2
|
||||
#server=ipv4.nsupdate.info
|
||||
#login=domain.nsupdate.info
|
||||
#password='123'
|
||||
#domain.nsupdate.info
|
||||
# use=web, web=http://ipv4.nsupdate.info/myip
|
||||
# protocol=dyndns2
|
||||
# server=ipv4.nsupdate.info
|
||||
# login=domain.nsupdate.info
|
||||
# password='123'
|
||||
# domain.nsupdate.info
|
||||
|
||||
##
|
||||
## nsupdate.info IPV6 (https://www.nsupdate.info)
|
||||
## ddclient releases <= 3.8.1 do not support IPv6
|
||||
##
|
||||
#usev6=if, if=eth0
|
||||
#protocol=dyndns2
|
||||
#server=ipv6.nsupdate.info
|
||||
#login=domain.nsupdate.info
|
||||
#password='123'
|
||||
#domain.nsupdate.info
|
||||
# usev6=if, if=eth0
|
||||
# protocol=dyndns2
|
||||
# server=ipv6.nsupdate.info
|
||||
# login=domain.nsupdate.info
|
||||
# password='123'
|
||||
# domain.nsupdate.info
|
||||
|
||||
##
|
||||
## Yandex.Mail for Domain (domain.yandex.com)
|
||||
|
@ -314,17 +314,17 @@ pid=@runstatedir@/ddclient.pid # record PID in file.
|
|||
##
|
||||
## dnsexit (www.dnsexit.com)
|
||||
##
|
||||
#protocol=dnsexit, \
|
||||
#login=myusername, \
|
||||
#password=mypassword, \
|
||||
#subdomain-1.domain.com,subdomain-2.domain.com
|
||||
# protocol=dnsexit, \
|
||||
# login=myusername, \
|
||||
# password=mypassword, \
|
||||
# subdomain-1.domain.com,subdomain-2.domain.com
|
||||
|
||||
##
|
||||
## dnsexit2 (API method www.dnsexit.com)
|
||||
##
|
||||
#protocol=dnsexit2
|
||||
#password=MyAPIKey
|
||||
#subdomain-1.domain.com,subdomain-2.domain.com
|
||||
# protocol=dnsexit2
|
||||
# password=MyAPIKey
|
||||
# subdomain-1.domain.com,subdomain-2.domain.com
|
||||
|
||||
##
|
||||
## domeneshop (www.domeneshop.no)
|
||||
|
@ -360,10 +360,10 @@ pid=@runstatedir@/ddclient.pid # record PID in file.
|
|||
##
|
||||
## DigitalOcean (www.digitalocean.com)
|
||||
##
|
||||
#protocol=digitalocean, \
|
||||
#zone=example.com, \
|
||||
#password=api-token \
|
||||
#example.com,sub.example.com
|
||||
# protocol=digitalocean, \
|
||||
# zone=example.com, \
|
||||
# password=api-token \
|
||||
# example.com,sub.example.com
|
||||
|
||||
##
|
||||
## Infomaniak (www.infomaniak.com)
|
||||
|
|
|
@ -1838,6 +1838,7 @@ sub _read_config {
|
|||
|
||||
return $content;
|
||||
}
|
||||
|
||||
######################################################################
|
||||
## init_config -
|
||||
######################################################################
|
||||
|
@ -2020,18 +2021,13 @@ sub init_config {
|
|||
sub process_args {
|
||||
my @spec = ();
|
||||
my $usage = "";
|
||||
|
||||
for (@_) {
|
||||
if (ref $_) {
|
||||
my ($key, $specifier, $arg_usage) = @$_;
|
||||
my $value = default($key);
|
||||
|
||||
push @spec, $key . $specifier;
|
||||
|
||||
$opt{$key} //= undef;
|
||||
|
||||
next unless $arg_usage;
|
||||
|
||||
$usage .= " $arg_usage";
|
||||
if (defined($value) && $value ne '') {
|
||||
$usage .= " (default: ";
|
||||
|
@ -3011,7 +3007,7 @@ sub get_default_interface {
|
|||
my @list = split(/\n/, $reply);
|
||||
@list = grep(/^default|^(?:0\.){3}0|^::\/0/, @list); # Select 'default' or '0.0.0.0' or '::/0'
|
||||
return undef if (scalar(@list) == 0);
|
||||
debug("Default routes found for IPv%s :\n%s", $ipver, join("\n",@list));
|
||||
debug("Default routes found for IPv%s:\n%s", $ipver, join("\n", @list));
|
||||
|
||||
# now check each interface to make sure it is global (not loopback).
|
||||
for my $line (@list) {
|
||||
|
|
Loading…
Reference in a new issue