mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
eae72e9ec7
commit
c4d3df0ed8
@ -346,7 +346,7 @@ def adapters():
|
|||||||
Route = namedtuple('Route', 'destination gateway netmask interface metric flags')
|
Route = namedtuple('Route', 'destination gateway netmask interface metric flags')
|
||||||
|
|
||||||
def routes():
|
def routes():
|
||||||
"""Get a collection of the available routes."""
|
''' A list of routes on this machine '''
|
||||||
ans = []
|
ans = []
|
||||||
adapter_map = {a.if_index:a.name for a in adapters()}
|
adapter_map = {a.if_index:a.name for a in adapters()}
|
||||||
with _get_forward_table() as p_forward_table:
|
with _get_forward_table() as p_forward_table:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user