Already have peers6 parameters, which should NOT disable compact announce with IPv6. Thanks to Properformer for reporting this issue.

This commit is contained in:
tdh
2025-01-02 12:06:08 +08:00
parent 0f88ab8d82
commit 22277c3750

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)) {