From 08ece5d2bf854277f82999dbc25c19d705b0438a Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 30 Oct 2017 21:14:04 +0100 Subject: [PATCH] default security to auto --- common/protocol/headers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/protocol/headers.go b/common/protocol/headers.go index 00945f8e6..1304a7e4d 100644 --- a/common/protocol/headers.go +++ b/common/protocol/headers.go @@ -86,10 +86,7 @@ type CommandSwitchAccount struct { } func (sc *SecurityConfig) AsSecurity() Security { - if sc == nil { - return Security(SecurityType_LEGACY) - } - if sc.Type == SecurityType_AUTO { + if sc == nil || sc.Type == SecurityType_AUTO { if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" { return Security(SecurityType_AES128_GCM) }