Merge pull request #305 from tdh62/php8

Fixed Tracker compact return issue when accessing via ipv6
This commit is contained in:
xiaomlove
2025-01-02 13:43:31 +08:00
committed by GitHub
-2
View File
@@ -115,8 +115,6 @@ $ip = getip(); // avoid to get the spoof ip from some agent
$_GET['ip'] = $ip;
if (!$port || $port > 0xffff)
warn("invalid port");
if (!ip2long($ip)) //Disable compact announce with IPv6
$compact = 0;
$ipv4 = $ipv6 = '';
if (isIPV4($ip)) {