mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 14:00:56 +08:00
fix get host from octane
This commit is contained in:
@@ -722,7 +722,7 @@ class TrackerRepository extends BaseRepository
|
||||
$peer->prev_action = $peer->last_action;
|
||||
}
|
||||
|
||||
if ($queries['event'] == 'started') {
|
||||
if ($queries['event'] == 'started' || !$peer->exists) {
|
||||
$peer->started = $nowStr;
|
||||
$peer->uploadoffset = $queries['uploaded'];
|
||||
$peer->downloadoffset = $queries['downloaded'];
|
||||
|
||||
Reference in New Issue
Block a user