0

Can anyone tell me how to change the bind-address on the hug API form 127.0.0.1 to 0.0.0.0, please I have been looking around the internet and the only thing I can find is how to change the port number

4

1 回答 1

1

If you are using hug cli you can do in shell:

hug -a app.py --host 192.168.0.10

or in the code at the end of your app.py (or whatever it's name is) file:

hug.API(__name__).http.serve(host="192.168.0.10")
于 2019-11-30T15:23:49.803 回答