Skip to content

Commit a8a6327

Browse files
committed
Change default IPv4 / IPv6 service
1 parent 8a7fbe5 commit a8a6327

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

config.dist.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
// define('HOST', 'server');
2929

3030

31-
// Enter a URL to use to determine the public IPv4 address.
32-
// [Optional; will be set to default value 'https://api.ipify.org' if missing.]
33-
define('IPV4_ADDRESS_URL', 'https://api.ipify.org');
31+
// Enter an URL to use to determine the public IPv4 address.
32+
// [Optional; will be set to default value 'https://get-ipv4.steck.cc' if missing.]
33+
define('IPV4_ADDRESS_URL', 'https://get-ipv4.steck.cc');
3434

35-
// Enter a URL to use as fallback to determine the public IPv4 address.
35+
// Enter an URL to use as fallback to determine the public IPv4 address.
3636
// [Optional; will be set to default value 'https://ipv4.seeip.org' if missing.]
3737
define('IPV4_ADDRESS_URL_FALLBACK', 'https://ipv4.seeip.org');
3838

39-
// Enter a URL to use to determine the public IPv6 address.
40-
// [Optional; will be set to default value 'https://ipv6.seeip.org' if missing.]
41-
define('IPV6_ADDRESS_URL', 'https://ipv6.seeip.org');
39+
// Enter an URL to use to determine the public IPv6 address.
40+
// [Optional; will be set to default value 'https://get-ipv6.steck.cc' if missing.]
41+
define('IPV6_ADDRESS_URL', 'https://get-ipv6.steck.cc');
4242

43-
// Enter a URL to use as fallback to determine the public IPv6 address.
43+
// Enter an URL to use as fallback to determine the public IPv6 address.
4444
// [Optional; will be set to default value 'https://v6.ident.me' if missing.]
4545
define('IPV6_ADDRESS_URL_FALLBACK', 'https://v6.ident.me');
4646

functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const VERSION = '5.0';
44
const SUCCESS = 'success';
5-
const USERAGENT = "dynamic-dns-netcup-api/".VERSION." (by stecklars)";
5+
const USERAGENT = "dynamic-dns-netcup-api/" . VERSION ." (by stecklars)";
66

77
//Check passed options
88
$shortopts = "q4:6:c:vh";
@@ -173,7 +173,7 @@ function sendRequest($request, $apiSessionRetry = false)
173173

174174
$result = json_decode($result, true);
175175

176-
// Due to a bug in the netcup CCP DNS API, sometimes sessions expire too early (statuscode 4001, error message: "The session id is not in a valid format."
176+
// Due to a bug in the netcup CCP DNS API, sometimes sessions expire too early (statuscode 4001, error message: "The session id is not in a valid format.")
177177
// We work around this bug by trying to login again once.
178178
// See Github issue #21.
179179
if ($result['statuscode'] === 4001 && $apiSessionRetry === false) {

update.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@
2525
}
2626

2727
if (!defined('IPV4_ADDRESS_URL')) {
28-
define('IPV4_ADDRESS_URL', 'https://api.ipify.org');
28+
define('IPV4_ADDRESS_URL', 'https://get-ipv4.steck.cc');
2929
}
3030

3131
if (!defined('IPV4_ADDRESS_URL_FALLBACK')) {
3232
define('IPV4_ADDRESS_URL_FALLBACK', 'https://ipv4.seeip.org');
3333
}
3434

3535
if (!defined('IPV6_ADDRESS_URL')) {
36-
define('IPV6_ADDRESS_URL', 'https://ipv6.seeip.org');
36+
define('IPV6_ADDRESS_URL', 'https://get-ipv6.steck.cc');
3737
}
3838

3939
if (!defined('IPV6_ADDRESS_URL_FALLBACK')) {
4040
define('IPV6_ADDRESS_URL_FALLBACK', 'https://v6.ident.me/');
41-
}
41+
}
4242

4343
if (USE_IPV4 === true) {
4444
// Get current IPv4 address

0 commit comments

Comments
 (0)