mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
50b21e0d70
commit
d7ff94d826
@ -62,7 +62,7 @@ else:
|
||||
raw = open('/proc/net/route', 'rb').read().decode('utf-8')
|
||||
for line in raw.splitlines():
|
||||
parts = line.split()
|
||||
if parts[1] == '00000000':
|
||||
if len(parts) > 1 and parts[1] == '00000000':
|
||||
for addr in get_addresses_for_interface(parts[0]):
|
||||
return addr
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user