deps, refactor

This commit is contained in:
Jun Kurihara 2023-01-19 14:53:54 +09:00
commit 0109dc5799
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03

View file

@ -119,7 +119,7 @@ async fn entrypoint(globals: Arc<Globals>) -> Result<()> {
let futures = select_all(addresses.into_iter().map(|addr| {
let mut tls_enabled = false;
if let Some(https_port) = globals.https_port {
tls_enabled = https_port == (addr.port() as u16)
tls_enabled = https_port == addr.port()
}
let proxy = Proxy {