fix: make uot check case-insensitive

This commit is contained in:
ospab 2026-05-21 03:00:07 +03:00
parent a5a0a17cfd
commit 5fa110d962
1 changed files with 2 additions and 1 deletions

View File

@ -985,7 +985,8 @@ impl Bridge {
target_ip: std::net::IpAddr, target_ip: std::net::IpAddr,
port: u16, port: u16,
) -> Result<crate::transport::Transport> { ) -> Result<crate::transport::Transport> {
if self.transport_mode == "uot" { let mode = self.transport_mode.to_lowercase();
if mode == "uot" || mode == "tcp" {
let (tx, rx) = crate::transport::xhttp::connect_xhttp( let (tx, rx) = crate::transport::xhttp::connect_xhttp(
target_ip, self.stealth_port, &self.stealth_sni, &self.access_key target_ip, self.stealth_port, &self.stealth_sni, &self.access_key
).await?; ).await?;