Update to new server IPv4
This commit is contained in:
parent
7d4992480b
commit
23f49859c6
|
@ -3,7 +3,7 @@ header('Content-Type: application/json');
|
||||||
|
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
if (substr($ip, 0, 9) === "10.23.42.") {
|
if (substr($ip, 0, 9) === "10.23.42.") {
|
||||||
$ip = "116.202.163.154";
|
$ip = "88.99.139.92";
|
||||||
}
|
}
|
||||||
|
|
||||||
$ip = escapeshellcmd($ip);
|
$ip = escapeshellcmd($ip);
|
||||||
|
|
|
@ -4,7 +4,7 @@ header('Content-Type: application/json');
|
||||||
|
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
if (substr($ip, 0, 9) === "10.23.42.") {
|
if (substr($ip, 0, 9) === "10.23.42.") {
|
||||||
$ip = "116.202.163.154";
|
$ip = "88.99.139.92";
|
||||||
}
|
}
|
||||||
|
|
||||||
$res = array();
|
$res = array();
|
||||||
|
|
|
@ -4,7 +4,7 @@ header('Content-Type: application/json');
|
||||||
|
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
if (substr($ip, 0, 9) === "10.23.42.") {
|
if (substr($ip, 0, 9) === "10.23.42.") {
|
||||||
$ip = "116.202.163.154";
|
$ip = "88.99.139.92";
|
||||||
}
|
}
|
||||||
|
|
||||||
$asndb = '/var/lib/GeoIP/GeoLite2-ASN.mmdb';
|
$asndb = '/var/lib/GeoIP/GeoLite2-ASN.mmdb';
|
||||||
|
|
Loading…
Reference in a new issue