Set up initial testing framework for network module
This commit is contained in:
parent
3f524ab371
commit
2100a7cfdb
2 changed files with 66 additions and 1 deletions
|
@ -33,7 +33,7 @@ class Module(core.module.Module):
|
|||
try:
|
||||
socket.create_connection(("1.1.1.1", 53))
|
||||
self.__is_connected = True
|
||||
except OSError:
|
||||
except:
|
||||
self.__is_connected = False
|
||||
|
||||
# Attempt to extract a valid network interface device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue