Fix IPCP forward enable detection

This commit is contained in:
up-n-atom
2023-09-12 18:41:57 -04:00
committed by GitHub
parent 5e95d226c7
commit be66aa055f
+1 -1
View File
@@ -107,7 +107,7 @@ async def set_dns_servers(client: SagemcomClient, dns_servers: tuple[IPv4Address
if 'uid' in forward and \
'Alias' in forward and forward['Alias'].startswith('IPCP') and \
'Interface' in forward and forward['Interface'].endswith('[IP_DATA]') and \
'Enable' in forward and not forward['Enable']}
'Enable' in forward and forward['Enable']}
statics = {forward['uid'] for forward in forwards \
if 'uid' in forward and \
'Alias' in forward and forward['Alias'].startswith('STATIC') and \