just wanna try something
This commit is contained in:
parent
cd7706c5c2
commit
97694cfb3a
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user