mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
mix类型的简单补充(微小进度)
This commit is contained in:
@@ -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"
|
||||
@@ -3,4 +3,4 @@ protocol = "shadowsocks"
|
||||
uuid = "method:AES-128-GCM\npass:iloveverysimple"
|
||||
host = "127.0.0.1"
|
||||
port = 4434
|
||||
#network = "udp"
|
||||
#network = "mix"
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user