From 8e503a49881e282c99181e45d0aea5eb49d9f328 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jan 2016 21:47:03 +0530 Subject: [PATCH] ... --- src/calibre/utils/ip_routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/ip_routing.py b/src/calibre/utils/ip_routing.py index 9c66f79e4a..fdf0746e77 100644 --- a/src/calibre/utils/ip_routing.py +++ b/src/calibre/utils/ip_routing.py @@ -28,7 +28,7 @@ if iswindows: def get_default_route_src_address(): # Use -6 for IPv6 addresses - raw = subprocess.check_output('route -4 print 0.0.0.0'.split()).decode('utf-8', 'replace') + raw = subprocess.check_output('route -4 print 0.0.0.0'.split(), creationflags=0x08).decode('utf-8', 'replace') in_table = False default_gateway = get_address_of_default_gateway() for line in raw.splitlines():