diff --git a/src/upnp.py b/src/upnp.py index ad72560c..46d55956 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -224,7 +224,7 @@ class uPnPThread(threading.Thread, StoppableThread): continue newRouter = Router(resp, ip) for router in self.routers: - if router.location == newRouter.location: + if router.routerPath == newRouter.routerPath: break else: logger.debug("Found UPnP router at %s", ip)