restrict ip to localhost

This commit is contained in:
chrys 2018-09-07 19:39:12 +02:00
parent 7575c13d71
commit 06e513a976

View File

@ -94,7 +94,7 @@ class remoteManager():
# echo "command say this is a test" | nc localhost 22447
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.host = '0.0.0.0'
self.host = '127.0.0.1'
self.port = 22447
self.sock.bind((self.host, self.port))
self.sock.listen(1)