socks5: fixed a bug in target getting

This commit is contained in:
nadoo committed 2021-03-19 15:57:16 +08:00
1 parent 88f09b30bc
commit 93728c6378
5 files changed
+22 -23

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ func NewVMess(s string, d proxy.Dialer) (*VMess, error) {
query := u.Query()
aid := query.Get("alterID")
if aid == "" {
aid = "0"
aid = "1"
}
alterID, err := strconv.ParseUint(aid, 10, 32)