forked from p15670423/monkey
moved connectivity checking outside of loop
This commit is contained in:
parent
2afcae489e
commit
f55b8d429d
|
@ -30,6 +30,8 @@ class ControlClient(object):
|
||||||
if not parent:
|
if not parent:
|
||||||
parent = GUID
|
parent = GUID
|
||||||
|
|
||||||
|
internet_access = check_internet_access(WormConfiguration.internet_services)
|
||||||
|
|
||||||
for server in WormConfiguration.command_servers:
|
for server in WormConfiguration.command_servers:
|
||||||
try:
|
try:
|
||||||
WormConfiguration.current_server = server
|
WormConfiguration.current_server = server
|
||||||
|
@ -38,7 +40,7 @@ class ControlClient(object):
|
||||||
'hostname': hostname,
|
'hostname': hostname,
|
||||||
'ip_addresses': local_ips(),
|
'ip_addresses': local_ips(),
|
||||||
'description': " ".join(platform.uname()),
|
'description': " ".join(platform.uname()),
|
||||||
'internet_access': check_internet_access(WormConfiguration.internet_services),
|
'internet_access': internet_access,
|
||||||
'config': WormConfiguration.as_dict(),
|
'config': WormConfiguration.as_dict(),
|
||||||
'parent': parent}
|
'parent': parent}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue