瀏覽代碼

use gcm on arm64

Darien Raymond 7 年之前
父節點
當前提交
9ad1e034e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/protocol/headers.go

+ 1 - 1
common/protocol/headers.go

@@ -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