default security to auto

pull/684/head^2
Darien Raymond 2017-10-30 21:14:04 +01:00
parent c3fc27f7a1
commit 08ece5d2bf
1 changed files with 1 additions and 4 deletions

View File

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