Skip to content

Commit 1fbded9

Browse files
committed
new: add uot option by default
1 parent 9f6a8f4 commit 1fbded9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ray2sing/naive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NaiveSingbox(vlessURL string) (*T.Outbound, error) {
3030
}
3131
}
3232
uot := T.UDPOverTCPOptions{
33-
Enabled: getOneOfN(decoded, "", "uot") != "",
33+
Enabled: getOneOfN(decoded, "", "uot") == "false" || getOneOfN(decoded, "", "uot") == "0",
3434
}
3535

3636
return &T.Outbound{

ray2sing/ssh.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func SSHSingbox(sshURL string) (*T.Outbound, error) {
4141
Password: u.Password,
4242
PrivateKey: privkeys,
4343
HostKey: hostkeys,
44+
UDPOverTCP: &T.UDPOverTCPOptions{
45+
Enabled: true,
46+
},
4447
},
4548
}
4649
return &result, nil

0 commit comments

Comments
 (0)