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
@@ -97,10 +97,10 @@ func NewClient(uuidStr, security string, alterID int) (*Client, error) {
case "none":
c.security = SecurityNone
case "":
c.security = SecurityChacha20Poly1305
if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" || runtime.GOARCH == "arm64" {
c.security = SecurityAES128GCM
}
c.security = SecurityChacha20Poly1305
default:
return nil, errors.New("unknown security type: " + security)
}