mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #74] cannot bind address 0.0.0.0 #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @changcui on GitHub (Jun 28, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/74
I cannot bind address 0.0.0.0, as a result, i cannot use the public IP to access the file server.
I found out the source code of args.rs just filter out the address, why?
@sigoden commented on GitHub (Jun 28, 2022):
the default is bind to 0.0.0.0
cloud you post the log?
@changcui commented on GitHub (Jun 28, 2022):
Listening on:
https://127.0.0.1:38964/
https://172.17.0.1:38964/
https://172.18.0.1:38964/
https://172.19.0.3:38964/
https://[::1]:38964/
It listens on all inet address, not https://0.0.0.0:38964/
@changcui commented on GitHub (Jun 28, 2022):
If I use python http.server, it could listen on 0.0.0.0:port
Log: Serving HTTP on 0.0.0.0 port 38964 (http://0.0.0.0:38964/)
How can I do this?
@sigoden commented on GitHub (Jun 28, 2022):
0.0.0.0is used on servers to designate a service may bind to all network interfaces.it doesn't exist physically. so dufs list all bind addresses except 0.0.0.0
you still use the public IP.
@changcui commented on GitHub (Jun 28, 2022):
Thanks very much, it's okay!