fix get host from octane

This commit is contained in:
xiaomlove
2022-04-07 19:08:02 +08:00
parent ebe47b1ba3
commit e12c94e651
3 changed files with 16 additions and 12 deletions

View File

@@ -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'];