mirror of
https://github.com/restic/rest-server.git
synced 2026-04-14 14:11:38 -07:00
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
18 lines
426 B
Plaintext
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
|