mirror of https://github.com/ospab/ostp.git
fix: make uot check case-insensitive
This commit is contained in:
parent
a5a0a17cfd
commit
5fa110d962
|
|
@ -985,7 +985,8 @@ impl Bridge {
|
|||
target_ip: std::net::IpAddr,
|
||||
port: u16,
|
||||
) -> 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(
|
||||
target_ip, self.stealth_port, &self.stealth_sni, &self.access_key
|
||||
).await?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue