Browse Source

Fix OTA in Shadowsocks TCP

pull/103/head v1.9.1
v2ray 9 years ago
parent
commit
7f2b157956
  1. 2
      proxy/shadowsocks/shadowsocks.go

2
proxy/shadowsocks/shadowsocks.go

@ -184,7 +184,7 @@ func (this *Shadowsocks) handleConnection(conn *hub.TCPConn) {
reader := crypto.NewCryptionReader(stream, timedReader)
request, err := ReadRequest(reader, NewAuthenticator(HeaderKeyGenerator(iv, key)), false)
request, err := ReadRequest(reader, NewAuthenticator(HeaderKeyGenerator(key, iv)), false)
if err != nil {
log.Access(conn.RemoteAddr(), serial.StringLiteral(""), log.AccessRejected, serial.StringLiteral(err.Error()))
log.Warning("Shadowsocks: Invalid request from ", conn.RemoteAddr(), ": ", err)

Loading…
Cancel
Save