tls: add skipVerify param in url

This commit is contained in:
nadoo committed 2018-07-04 16:55:45 +08:00
1 parent a21dcb66a3
commit c8ca1f0b25
4 files changed
+18 -21

No files matched your search

-1
View File
@@ -203,7 +203,6 @@ func (c *Conn) Read(b []byte) (n int, err error) {
if !c.connected {
c.DecodeRespHeader()
}
return c.Conn.Read(b)
}
+2 -5
View File
@@ -46,11 +46,8 @@ func NewVMess(s string, dialer proxy.Dialer) (*VMess, error) {
security = "NONE"
}
aid := "0"
params, _ := url.ParseQuery(u.RawQuery)
if v, ok := params["alterID"]; ok {
aid = v[0]
}
query := u.Query()
aid := query.Get("alterID")
alterID, err := strconv.ParseUint(aid, 10, 32)
if err != nil {