mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Add udp over tcp support for shadowsocks-2022
This commit is contained in:
parent
6f93ef7736
commit
c3505632fd
14 changed files with 119 additions and 33 deletions
|
@ -136,6 +136,7 @@ type ShadowsocksServerTarget struct {
|
|||
Email string `json:"email"`
|
||||
Level byte `json:"level"`
|
||||
IVCheck bool `json:"ivCheck"`
|
||||
UoT bool `json:"uot"`
|
||||
}
|
||||
|
||||
type ShadowsocksClientConfig struct {
|
||||
|
@ -165,6 +166,7 @@ func (v *ShadowsocksClientConfig) Build() (proto.Message, error) {
|
|||
config.Port = uint32(server.Port)
|
||||
config.Method = server.Cipher
|
||||
config.Key = server.Password
|
||||
config.UdpOverTcp = server.UoT
|
||||
return config, nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//go:build !go1.18
|
||||
|
||||
package conf
|
||||
|
||||
import (
|
||||
|
@ -98,6 +99,7 @@ type ShadowsocksServerTarget struct {
|
|||
Email string `json:"email"`
|
||||
Level byte `json:"level"`
|
||||
IVCheck bool `json:"ivCheck"`
|
||||
UoT bool `json:"uot"`
|
||||
}
|
||||
|
||||
type ShadowsocksClientConfig struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue