From 951b43306e3a5daee463d4f9c25c401a74bf62e9 Mon Sep 17 00:00:00 2001 From: TheGreyDiamond Date: Sun, 13 Sep 2020 21:11:43 +0200 Subject: [PATCH] Accept broadcast from every where --- .gitignore | 3 +++ Code/session.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d786737 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +Code/__pycache__/session.cpython-36.pyc +*.pyc diff --git a/Code/session.py b/Code/session.py index a02bd02..77ee06d 100644 --- a/Code/session.py +++ b/Code/session.py @@ -101,7 +101,7 @@ class enlightSession(): logging.info("Starting lighthouse thread") self.__activ__ = True self.__direct_socket__ = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - self.__direct_socket__.bind((self.__my_ip__, 5589)) + self.__direct_socket__.bind(("", 5589)) self.__client_thread__ = threading.Thread(target=self.lighthouseMain, args=(), name="Lighthouse server") self.__client_thread__.start() self.__direct_thread__ = threading.Thread(target=self.lightSearcherDirectMain, args=(), name="Inbound session direct server") @@ -254,4 +254,4 @@ def testOnlyServer(): testSession.stopSession() if __name__ == "__main__": - testOnlyServer() \ No newline at end of file + testOnlyServer()