UPnP parser fix

- Fixes #1131
- Came over BM, thank you kind stranger
This commit is contained in:
Peter Šurda 2018-02-26 20:03:35 +01:00
parent 1184b23223
commit 140265621f
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -224,7 +224,7 @@ class uPnPThread(threading.Thread, StoppableThread):
continue continue
newRouter = Router(resp, ip) newRouter = Router(resp, ip)
for router in self.routers: for router in self.routers:
if router.location == newRouter.location: if router.routerPath == newRouter.routerPath:
break break
else: else:
logger.debug("Found UPnP router at %s", ip) logger.debug("Found UPnP router at %s", ip)