Skip to content

Commit

Permalink
last minute workaround for issue #48
Browse files Browse the repository at this point in the history
Henri Wahl committed Jul 28, 2014
1 parent bba658d commit dde81a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Nagstamon/Nagstamon/Server/Generic.py
Original file line number Diff line number Diff line change
@@ -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":

0 comments on commit dde81a2

Please sign in to comment.