diff --git a/modules/servers.py b/modules/servers.py index 23c13fa..8726ba6 100644 --- a/modules/servers.py +++ b/modules/servers.py @@ -34,6 +34,7 @@ global makeServer def makeServer(host,port,https): print("Opening " +str(host)+ ":" +str(port)+ " (" +str(https)+ ") ...") serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + serverSocket.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) serverSocket.bind((host,port)) if https: proto = False