Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bskjon committed Nov 12, 2023
1 parent ccb5c92 commit ee70b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DynamicRoutingUpdater/NetworkAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def getGateway(self) -> Optional[str]:
# If this is hit, then it could not find the gateway using traditional means
netst = self.parseNetstat(nic_name=self.name)
routable = [line for line in netst if line.flags.lower() == "G".lower()]
use_route: Netstated = next(routable, None)
use_route: Netstated = next(iter(routable), None)
if (use_route is not None):
return use_route.gateway
return None
Expand Down

0 comments on commit ee70b61

Please sign in to comment.