Right now when cargo run is executed, the server is started bound to address 0.0.0.0 and port 8080. Those two values should be configurable via command line arguments.
Changing the port would allow two instances running on the same machine.
Changing the address would allow supporting IPv6 or limiting connections to localhost.
Right now when
cargo run
is executed, the server is started bound to address0.0.0.0
and port 8080. Those two values should be configurable via command line arguments.Changing the port would allow two instances running on the same machine.
Changing the address would allow supporting IPv6 or limiting connections to localhost.
Maybe the library
clap
could be used.