From c8ff1754fca02814bfe15921fa95b0beae6ed0e2 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 14 Oct 2012 22:32:05 +0200 Subject: [PATCH] Explicitly warning and disabling IPv6-format interfaces. It's coming in Twisted, but the exact status is a bit hard to determine - and it's definitely not available for only one older revision of Twisted. So disabling. We'll revisit this down the road when Twisted support is more prevalent. This closes Issue 260. --- src/server/portal.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/server/portal.py b/src/server/portal.py index fb6a355e59..b871bd434e 100644 --- a/src/server/portal.py +++ b/src/server/portal.py @@ -171,6 +171,9 @@ if TELNET_ENABLED: from src.server import telnet for interface in TELNET_INTERFACES: + if ":" in interface: + print " iPv6 interfaces not yet supported" + continue ifacestr = "" if interface != '0.0.0.0' or len(TELNET_INTERFACES) > 1: ifacestr = "-%s" % interface @@ -192,6 +195,9 @@ if SSL_ENABLED: from src.server import ssl for interface in SSL_INTERFACES: + if ":" in interface: + print " iPv6 interfaces not yet supported" + continue ifacestr = "" if interface != '0.0.0.0' or len(SSL_INTERFACES) > 1: ifacestr = "-%s" % interface @@ -215,6 +221,9 @@ if SSH_ENABLED: from src.server import ssh for interface in SSH_INTERFACES: + if ":" in interface: + print " iPv6 interfaces not yet supported" + continue ifacestr = "" if interface != '0.0.0.0' or len(SSH_INTERFACES) > 1: ifacestr = "-%s" % interface @@ -256,6 +265,9 @@ if WEBSERVER_ENABLED: web_site = server.Site(web_root, logPath=settings.HTTP_LOG_FILE) for interface in WEBSERVER_INTERFACES: + if ":" in interface: + print " iPv6 interfaces not yet supported" + continue ifacestr = "" if interface != '0.0.0.0' or len(WEBSERVER_INTERFACES) > 1: ifacestr = "-%s" % interface