diff --git a/ssdpy/server.py b/ssdpy/server.py index 52554b5..d6bcc42 100644 --- a/ssdpy/server.py +++ b/ssdpy/server.py @@ -148,10 +148,10 @@ def on_recv(self, data, address): ) logger.debug("Created NOTIFY: {}".format(notify)) try: - self.sock.sendto(notify, address) + self.sock.sendto(notify, self._address) except OSError as e: # Most commonly: We received a multicast from an IP not in our subnet - logger.debug("Unable to send NOTIFY to {}: {}".format(address, e)) + logger.debug("Unable to send NOTIFY to {}: {}".format(self._address, e)) def serve_forever(self): """