mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 12:37:54 +08:00
update: add random port
This commit is contained in:
@ -112,4 +112,9 @@ class Helper
|
||||
}
|
||||
return $subscribeUrl;
|
||||
}
|
||||
|
||||
public static function randomPort($range) {
|
||||
$portRange = explode('-', $range);
|
||||
return rand($portRange[0], $portRange[1]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user