Skip to content

Commit 85220c7

Browse files
authored
Update shaker.py
1 parent 8bbda20 commit 85220c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shaker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class server:
1717

1818
def __init__(self,port):
19-
self.ip = socket.gethostbyname(socket.gethostname())
19+
self.ip = socket.gethostbyname('0.0.0.0')
2020
self.port = port
2121
self.l = "cd"
2222
self.o = system()
@@ -33,7 +33,7 @@ def start(self):
3333
_exit(1)
3434
try:
3535
so.listen(1)
36-
host = socket.gethostbyname(0.0.0.0)
36+
host = socket.gethostbyname(socket.gethostname())
3737
print "[%s:%s] Waiting for connection ..."%(host,self.port)
3838

3939

0 commit comments

Comments
 (0)