mix类型的简单补充(微小进度)

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent a7257bec43
commit 6a360a2ef9
3 changed files with 6 additions and 2 deletions

View File

@@ -9,4 +9,4 @@ protocol = "shadowsocks"
uuid = "method:AES-128-GCM\npass:iloveverysimple" # chacha20-ietf-poly1305,AES-128-GCM, AES-256-GCM, 大小写均可在macm1 上测试 应该是 aes 更快
host = "127.0.0.1"
port = 4434
#network = "udp" # 我们默认依然是在tcp上传输 ss协议的。如果是在udp上传输的话因为暴力发包是很容易丢包的
#network = "mix"

View File

@@ -3,4 +3,4 @@ protocol = "shadowsocks"
uuid = "method:AES-128-GCM\npass:iloveverysimple"
host = "127.0.0.1"
port = 4434
#network = "udp"
#network = "mix"

View File

@@ -56,6 +56,10 @@ func (*Server) Name() string {
return Name
}
func (*Server) MultiTransportLayer() bool {
return true
}
func (s *Server) Handshake(underlay net.Conn) (result net.Conn, msgConn netLayer.MsgConn, targetAddr netLayer.Addr, returnErr error) {
result = s.cipher.StreamConn(underlay)
readbs := utils.GetBytes(utils.MTU)