소스 검색

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