ssr: update due to upstream lib change

This commit is contained in:
nadoo committed 2020-07-13 10:30:40 +08:00
1 parent ab6a448d00
commit 92a43608f3
4 files changed
+60 -16

No files matched your search

+2 -1
View File
@@ -11,6 +11,7 @@ import (
"github.com/mzz2017/shadowsocksR/obfs"
"github.com/mzz2017/shadowsocksR/protocol"
"github.com/mzz2017/shadowsocksR/ssr"
"github.com/mzz2017/shadowsocksR/streamCipher"
"github.com/nadoo/glider/common/log"
"github.com/nadoo/glider/common/socks"
@@ -84,7 +85,7 @@ func (s *SSR) Dial(network, addr string) (net.Conn, error) {
return nil, errors.New("[ssr] unable to parse address: " + addr)
}
cipher, err := shadowsocksr.NewStreamCipher(s.EncryptMethod, s.EncryptPassword)
cipher, err := streamCipher.NewStreamCipher(s.EncryptMethod, s.EncryptPassword)
if err != nil {
return nil, err
}