summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index 391dc14ea..1283d68b0 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -156,8 +156,9 @@ def get_config():
try:
addrs = netifaces.ifaddresses(interface)
except ValueError:
- raise ConfigError("Invalid interface: {0}".format(interface))
-
+ print("WARNING: interface {0} does not exist".format(interface))
+ continue
+
if netifaces.AF_INET in addrs.keys():
for ip4 in addrs[netifaces.AF_INET]:
listen4.append(ip4['addr'])