Permalink
Browse files

changed IP address selection

  • Loading branch information...
1 parent bcb95ec commit 5e60f2a27303cb5cc6d58e557a5657eed0a62e8f @xorpaul committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Server.py
View
@@ -17,7 +17,7 @@ def __init__(self, port, services):
sys.setcheckinterval(1000)
# should get the IP address
- listeningHost = socket.gethostbyaddr(socket.gethostname())[-1][0]
+ listeningHost = socket.gethostbyaddr(socket.gethostname())[0]
SocketServer.ThreadingTCPServer.allow_reuse_address = True
self.httpd = SocketServer.ThreadingTCPServer((listeningHost, port),

0 comments on commit 5e60f2a

Please sign in to comment.