1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-21 16:56:27 -05:00

use gcm on arm64

This commit is contained in:
Darien Raymond 2018-08-25 10:04:38 +02:00
parent a2d2d2981c
commit 9ad1e034e0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -79,7 +79,7 @@ type CommandSwitchAccount struct {
func (sc *SecurityConfig) GetSecurityType() SecurityType {
if sc == nil || sc.Type == SecurityType_AUTO {
if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" {
if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" || runtime.GOARCH == "arm64" {
return SecurityType_AES128_GCM
}
return SecurityType_CHACHA20_POLY1305