just wanna try something

This commit is contained in:
Mark McIntyre 2019-05-02 12:54:08 -04:00
parent cd7706c5c2
commit 97694cfb3a

View File

@ -94,7 +94,8 @@ if __name__ == "__main__":
simple_handler = SuperSimpleHandler() # http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer((args.ip_address, args.port), SockHandler) as tcpd:
#with socketserver.TCPServer((args.ip_address, args.port), SockHandler) as tcpd:
with socketserver.TCPServer((args.ip_address, args.port), simple_hander) as tcpd:
log.info(f"Server started on {args.ip_address}:{args.port}")
tcpd.serve_forever()