Published the clap-port-flag crate. Reusable --port command for Rusthttps://github.com/rust-clique/clap-port-flag …
Could you elaborate a bit? You mean having three ways of detecting a port isn't good? Curious to hear why, I'm unfamiliar with the downsides.
-
-
.bind("*", port) will bind to every available interface on a machine, potentially opening up your server to the outside world. You might not want to do that (and instead bind to 127.0.0.1 only by default and allow to bind to specific interface when selected)
-
Oh snap, that's a very good point! Thanks for pointing that out :D
End of conversation
New conversation -
-
-
I assume he is talking about the interface, not the port. 0.0.0.0 instead of 127.0.0.1
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.