Allow server browser to start on its own

This commit is contained in:
polaris
2014-05-22 21:21:43 -04:00
parent e649bb4764
commit 8ee93d1ac1

View File

@@ -424,4 +424,8 @@ class Session(LineReceiver):
# This isn't standard behavior but it can work in some instances.
self.log(logging.DEBUG, "Forwarded data to %s:%s directly (potential error occurred)..." % (forward_client[0], forward_client[1]))
client_s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client_s.sendto(output, forward_client)
client_s.sendto(output, forward_client)
if __name__ == "__main__":
server_browser = GameSpyServerBrowserServer()
server_browser.start()