From be66aa055f41aaa18112617d774936d640df6b6a Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Tue, 12 Sep 2023 18:41:57 -0400 Subject: [PATCH] Fix IPCP forward enable detection --- xmo-remote-client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmo-remote-client.py b/xmo-remote-client.py index 9a56f77..52f47f6 100755 --- a/xmo-remote-client.py +++ b/xmo-remote-client.py @@ -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 \