fix scheme
This commit is contained in:
@@ -186,7 +186,8 @@ async fn handle_connection(
|
||||
subdomain: Some(subdomain.clone()),
|
||||
};
|
||||
state.register_tunnel(connection_id, info, connection.clone());
|
||||
let url = format!("http://{fqdn}");
|
||||
let scheme = if state.traefik_cert_resolver.is_some() { "https" } else { "http" };
|
||||
let url = format!("{scheme}://{fqdn}");
|
||||
write_server_message(&mut send, &ServerMessage::TunnelCreated {
|
||||
tunnel_id,
|
||||
protocol,
|
||||
|
||||
Reference in New Issue
Block a user