mirror of
https://github.com/TheGreyDiamond/Enlight.git
synced 2025-12-16 23:10:45 +01:00
Merge branch 'master' of https://github.com/TheGreyDiamond/Enlight
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
Code/__pycache__/session.cpython-36.pyc
|
||||||
|
*.pyc
|
||||||
@@ -101,7 +101,7 @@ class enlightSession():
|
|||||||
logging.info("Starting lighthouse thread")
|
logging.info("Starting lighthouse thread")
|
||||||
self.__activ__ = True
|
self.__activ__ = True
|
||||||
self.__direct_socket__ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
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__ = threading.Thread(target=self.lighthouseMain, args=(), name="Lighthouse server")
|
||||||
self.__client_thread__.start()
|
self.__client_thread__.start()
|
||||||
self.__direct_thread__ = threading.Thread(target=self.lightSearcherDirectMain, args=(), name="Inbound session direct server")
|
self.__direct_thread__ = threading.Thread(target=self.lightSearcherDirectMain, args=(), name="Inbound session direct server")
|
||||||
@@ -254,4 +254,4 @@ def testOnlyServer():
|
|||||||
testSession.stopSession()
|
testSession.stopSession()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
testOnlyServer()
|
testOnlyServer()
|
||||||
|
|||||||
Reference in New Issue
Block a user