mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
ss: handle unexpect situation to avoid panic #132
This commit is contained in:
1 parent
4e1cb6ebf6
commit
2520a1c8b4
7 files changed
+33
-16
No files matched your search
@@ -128,7 +128,7 @@ func (s *Trojan) Dial(network, addr string) (net.Conn, error) {
|
||||
var buf bytes.Buffer
|
||||
buf.Write(s.pass[:])
|
||||
buf.WriteString("\r\n")
|
||||
buf.WriteByte(1)
|
||||
buf.WriteByte(socks.CmdConnect)
|
||||
buf.Write(socks.ParseAddr(addr))
|
||||
buf.WriteString("\r\n")
|
||||
_, err = tlsConn.Write(buf.Bytes())
|
||||
|
||||
Reference in new issue
Block a user