We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d2993 commit cbf1a08Copy full SHA for cbf1a08
DynamicRoutingUpdater/NetworkAdapter.py
@@ -43,8 +43,9 @@ def getGateway(self) -> Optional[str]:
43
except:
44
logging.error(f"getGateway => {gw}")
45
# If this is hit, then it could not find the gateway using traditional means
46
+ logging.info("Using fallback to get gateway")
47
netst = self.parseNetstat(nic_name=self.name)
- routable = [line for line in netst if line.flags.lower() == "G".lower()]
48
+ routable = [line for line in netst if "G".lower() in line.flags.lower()]
49
use_route: Netstated = next(iter(routable), None)
50
if (use_route is not None):
51
return use_route.gateway
0 commit comments