mirror of
https://github.com/r4sas/PBinCLI
synced 2025-03-13 05:41:08 +00:00
use secrets for random server choosing
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
bf35207211
commit
1d6d91c8bf
1
.gitignore
vendored
1
.gitignore
vendored
@ -47,6 +47,7 @@ wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
*.exe
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
|
@ -194,9 +194,9 @@ def main():
|
||||
|
||||
# Set server and re-validate instance URL
|
||||
if CONFIG['random_server']:
|
||||
import random
|
||||
import secrets
|
||||
url_arr = CONFIG['random_server'].split(',')
|
||||
CONFIG['server'] = validate_url_ending(random.choice(url_arr))
|
||||
CONFIG['server'] = validate_url_ending(secrets.choice(url_arr))
|
||||
else:
|
||||
CONFIG['server'] = validate_url_ending(CONFIG['server'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user