inbound hostname corrected
--HG-- branch : sandbox
This commit is contained in:
@@ -33,7 +33,7 @@ class MyTCPHandler(SocketServer.BaseRequestHandler):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
HOST, PORT = "localhost", 8080
|
HOST, PORT = "", 8080
|
||||||
# Create the server, binding to localhost on port 9999
|
# Create the server, binding to localhost on port 9999
|
||||||
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
||||||
# Activate the server; this will keep running until you
|
# Activate the server; this will keep running until you
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class MyTCPHandler(SocketServer.BaseRequestHandler):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
HOST, PORT = "localhost", 8080
|
HOST, PORT = "", 8080
|
||||||
# Create the server, binding to localhost on port 9999
|
# Create the server, binding to localhost on port 9999
|
||||||
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
||||||
# Activate the server; this will keep running until you
|
# Activate the server; this will keep running until you
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class MyTCPHandler(SocketServer.BaseRequestHandler):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
HOST, PORT = "localhost", 8080
|
HOST, PORT = "", 8080
|
||||||
# Create the server, binding to localhost on port 9999
|
# Create the server, binding to localhost on port 9999
|
||||||
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
server = SocketServer.TCPServer((HOST, PORT), MyTCPHandler)
|
||||||
# Activate the server; this will keep running until you
|
# Activate the server; this will keep running until you
|
||||||
|
|||||||
Reference in New Issue
Block a user