Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use 127.0.0.1 as IPv4 if there's no external IPv4 addr
Since commit 0bc0d3b ("feat: add vsock network type support (dragonflyoss#1303)") we have vsock support, which means we could run dfget in a constrained VM env that only has loopback net interface, and connect to dfdaemon on host via vsock connection. So it's a valid setup to have no external IPv4 addr. Don't panic in this case and use "127.0.0.1" as IPv4. Signed-off-by: Eryu Guan <[email protected]>
- Loading branch information