specify the handler
This commit is contained in:
parent
044be922d8
commit
cc5eecb234
@ -80,7 +80,7 @@ if __name__ == "__main__":
|
||||
log.info("Creating 1 gigabyte file...")
|
||||
create_file()
|
||||
|
||||
simple_handler = http.server.SimpleHTTPRequestHandler
|
||||
simple_handler = SimpleHandler() # http.server.SimpleHTTPRequestHandler
|
||||
|
||||
with socketserver.TCPServer((args.ip_address, args.port), SockHandler) as tcpd:
|
||||
log.info(f"Server started on {args.ip_address}:{args.port}")
|
||||
|
Loading…
Reference in New Issue
Block a user