make lan server test only a few ports, add run time test grace period in service detection attack prevetion mechanism

This commit is contained in:
Kevin 2020-06-19 01:08:39 -05:00
parent 5751468e8a
commit 7205189d62
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import logger
def test_lan_server(testmanager):
start_time = get_epoch()
for i in range(1024, 65536):
for i in range(1337, 1340):
try:
if requests.get(f"http://{best_ip}:{i}/ping").text == 'onionr!':
bl = insert('test data')