gdog icon indicating copy to clipboard operation
gdog copied to clipboard

IndexError: list index out of range

Open bongtrop opened this issue 7 years ago • 0 comments

If the target machine network interface do not have the ipv4 attribute or AF_INET, the client.py will crash. The error tracer below show the gdog client.py error.

C:\Users\xxxxxxxxx\Desktop\gdog>python client.py
Traceback (most recent call last):
  File "client.py", line 229, in <module>
    sysInfo = SystemInfo()
  File "client.py", line 198, in __init__
    self.IPv4 = netifaces.ifaddresses(iface).get(netifaces.AF_INET, [])[0]['addr']
IndexError: list index out of range

bongtrop avatar Jan 13 '19 07:01 bongtrop