just wanna try something
This commit is contained in:
parent
cd7706c5c2
commit
97694cfb3a
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
simple_handler = SuperSimpleHandler() # http.server.SimpleHTTPRequestHandler
|
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}")
|
log.info(f"Server started on {args.ip_address}:{args.port}")
|
||||||
tcpd.serve_forever()
|
tcpd.serve_forever()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue