feature for all runtime adapters: add the ability to provide a pre-bound TcpListener instead of host+port
jbr opened this issue · comments
from #198
I'd like this as well, so that I can bind to a privileged port and then drop privileges.
This is released as Config::with_prebound_server
as patch releases for all three runtimes (trillium-tokio-v0.3.2, trillium-async-std-v0.3.1, and trillium-smol-v0.3.1). Example usage for tokio is at tokio/examples/tokio_binding.rs and usage is identical for the other two runtimes.
@jbr That's incredible, thank you!