rest-server 0.10.0 (v0.10.0-8-gba581f2) compiled with go1.11.6 on linux/arm
rest-server 0.10.0 (v0.10.0-27-gc36ae5f) compiled with go1.13.7 on linux/amd64
rest-server --listen :8000 and
rest-server --listen 0.0.0.0:8000
rest-server only listens on tcp6 when using the
--listen :8000 or
--listen 0.0.0.0:8000 syntax, and when I try passing
--listen twice it only uses the last instance. I have to pass a specific IPv4 address to have it listen on tcp4. Is this intended behaviour or should I report a bug? I’d like it to listen on v4 and v6.
Edit: this also seems to open up a can of worms: if restic resolves a host name that has IPv4 and v6 addresses, but it cannot connect to the v6 address, it fails, rather than attempting the v4 address; also might be a bug.