Commit b47add0f by Skylar Saveland

fixes 4365 - Mac with cisco vpn client, GenericBsdIfconfigNetwork…

fixes 4365 - Mac with cisco vpn client, GenericBsdIfconfigNetwork get_default_interfaces fails with index out of range
parent 24a3b6c7
...@@ -1576,7 +1576,7 @@ class GenericBsdIfconfigNetwork(Network): ...@@ -1576,7 +1576,7 @@ class GenericBsdIfconfigNetwork(Network):
for line in lines: for line in lines:
words = line.split() words = line.split()
# Collect output from route command # Collect output from route command
if len(words) > 0: if len(words) > 1:
if words[0] == 'interface:': if words[0] == 'interface:':
interface[v]['interface'] = words[1] interface[v]['interface'] = words[1]
if words[0] == 'gateway:': if words[0] == 'gateway:':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment