mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
Already have peers6 parameters, which should NOT disable compact announce with IPv6. Thanks to Properformer for reporting this issue.
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