Closed nree closed 4 years ago
Current implementation is a wise choice. It's best practice to use TLS certificates with domain names for compatibility (dualstack IP) and security reasons (ACME DNS challenge). Please close.
ok, that seems fair, though I think the error message could be better. Seems like a parsing error at first glance (see original title of issue).
ERROR ws::handler] WS Error <Protocol>: Unable to parse domain from wss://127.0.0.1:55037/. Needed for SSL.
Only when using wss & if using 'localhost' ok. Sometimes you don't want to use 'localhost' , you want to be specific with ip addr.
Bad code here: https://github.com/housleyjk/ws-rs/blob/4a981affa5281ea742fbaf4f4f4120876cd2b5b2/src/handler.rs#L294
Assumes everything is a domain or fail. Doesn't check if ipaddr
Doc for
domain
: