mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
NAT users' real port (#1027)
This commit is contained in:
parent
98bfecc0bf
commit
5005474b1a
1 changed files with 3 additions and 0 deletions
|
@ -132,6 +132,9 @@ $peer_hash = hash('xxh128', $passkey . $info_hash_hex . $port);
|
|||
// Events
|
||||
$stopped = ($event === 'stopped');
|
||||
|
||||
// Get the real port to help NAT users
|
||||
$port = $_SERVER['REMOTE_PORT'];
|
||||
|
||||
// Set seeder & complete
|
||||
$complete = $seeder = ($left == 0) ? 1 : 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue