From dde81a284af3974a4a64a48c17a589b19b3109b5 Mon Sep 17 00:00:00 2001 From: Henri Wahl Date: Mon, 28 Jul 2014 10:46:23 +0200 Subject: [PATCH] last minute workaround for issue #48 --- Nagstamon/Nagstamon/Server/Generic.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Nagstamon/Nagstamon/Server/Generic.py b/Nagstamon/Nagstamon/Server/Generic.py index abbda27c0..f678e2ce7 100644 --- a/Nagstamon/Nagstamon/Server/Generic.py +++ b/Nagstamon/Nagstamon/Server/Generic.py @@ -1139,8 +1139,10 @@ def GetHost(self, host): # workaround for URL-ified IP as described in SF bug 2967416 # https://sourceforge.net/tracker/?func=detail&aid=2967416&group_id=236865&atid=1101370 - if not ip.find("://") == -1: - ip = ip.split("://")[1] + if "://" in ip: ip = ip.split("://")[1] + + # last-minute-workaround for https://github.com/HenriWahl/Nagstamon/issues/48 + if "," in ip: ip = ip.split(",")[0] # print IP in debug mode if str(self.conf.debug_mode) == "True":