Files
rest-server/changelog/unreleased/pull-271
Adam Eijdenberg 03ad2420db fix: print the actual address listened on
This is useful when the server is started with an ephemeral port, e.g.:

./rest-server --no-auth --listen "127.0.0.1:0"

...

start server on 127.0.0.1:46015
2024-02-05 10:44:25 +11:00

18 lines
426 B
Plaintext

Enhancement: after start-up, server served message now prints actual listen address
For example, when started with `--listen :0`, previously the server would print:
```
start server on :0
```
Now it will print the actual address listened on, e.g.
```
start server on 0.0.0.0:37333
```
This is useful when starting a server with an auto-allocated free port number (port 0).
https://github.com/restic/rest-server/pull/271