mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
Merge pull request #305 from tdh62/php8
Fixed Tracker compact return issue when accessing via ipv6
This commit is contained in:
@@ -115,8 +115,6 @@ $ip = getip(); // avoid to get the spoof ip from some agent
|
|||||||
$_GET['ip'] = $ip;
|
$_GET['ip'] = $ip;
|
||||||
if (!$port || $port > 0xffff)
|
if (!$port || $port > 0xffff)
|
||||||
warn("invalid port");
|
warn("invalid port");
|
||||||
if (!ip2long($ip)) //Disable compact announce with IPv6
|
|
||||||
$compact = 0;
|
|
||||||
|
|
||||||
$ipv4 = $ipv6 = '';
|
$ipv4 = $ipv6 = '';
|
||||||
if (isIPV4($ip)) {
|
if (isIPV4($ip)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user