|
28 | 28 | // define('HOST', 'server'); |
29 | 29 |
|
30 | 30 |
|
31 | | -// If set to true, the script will check for your public IPv4 address and add it as an A-Record / change an existing A-Record for the host. |
32 | | -// You may want to deactivate this, for example, when using a carrier grade NAT (CGNAT). |
33 | | -// Most likely though, you should keep this active, unless you know otherwise. |
34 | | -define('USE_IPV4', true); |
35 | | - |
36 | | - |
| 31 | +// Set a URL to use to determine the public IPv4 address. It must |
| 32 | +// only return an IPv4 address in plain text, otherwise the script will fail. |
37 | 33 | define('IPV4_ADDRESS_PROVIDER', 'https://api.ipify.org'); |
| 34 | + |
| 35 | +// Set a URL to use as fallback to determine the public IPv4 |
| 36 | +// address. It must only return an IPv4 address in plain text, otherwise the |
| 37 | +// script will fail. |
38 | 38 | define('IPV4_ADDRESS_PROVIDER_FALLBACK', 'https://ipv4.seeip.org'); |
| 39 | + |
| 40 | +// Set a URL to use to determine the public IPv6 address. It must |
| 41 | +// only return an IPv6 address in plain text, otherwise the script will fail. |
39 | 42 | define('IPV6_ADDRESS_PROVIDER', 'https://ipv6.seeip.org'); |
| 43 | + |
| 44 | +// Set a URL to use as fallback to determine the public IPv6 |
| 45 | +// address. It must only return an IPv6 address in plain text, otherwise the |
| 46 | +// script will fail. |
40 | 47 | define('IPV6_ADDRESS_PROVIDER_FALLBACK', 'https://v6.ident.me/'); |
41 | 48 |
|
42 | 49 |
|
| 50 | +// If set to true, the script will check for your public IPv4 address and add it as an A-Record / change an existing A-Record for the host. |
| 51 | +// You may want to deactivate this, for example, when using a carrier grade NAT (CGNAT). |
| 52 | +// Most likely though, you should keep this active, unless you know otherwise. |
| 53 | +define('USE_IPV4', true); |
| 54 | + |
43 | 55 | // If set to true, the script will check for your public IPv6 address too and add it as an AAAA-Record / change an existing AAAA-Record for the host. |
44 | 56 | // Activate this only if you have IPv6 connectivity, or you *WILL* get errors. |
45 | 57 | define('USE_IPV6', false); |
|
0 commit comments