diff --git a/natter.py b/natter.py index dbdee9b..18b50f1 100755 --- a/natter.py +++ b/natter.py @@ -1486,10 +1486,9 @@ def _discover(self): while True: try: buff, addr = sock.recvfrom(4096) - m = re.search( - r"LOCATION: *(http://[^\[]\S+)\s+", - buff.decode("utf-8"), - ) + m = re.search(r"[Ll][Oo][Cc][Aa][Tt][Ii][Oo][Nn]: " + r"*([Hh][Tt][Tt][Pp]://[^\[]\S+)\s+", + buff.decode("utf-8")) if not m: continue ipaddr = addr[0]