Keeping original case for OK statement

This commit is contained in:
Jacob Reynolds 2018-02-28 13:37:00 -06:00 committed by GitHub
commit feb3ac3161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ func (f WindowsFirewall) IsForwardingEnabled() bool {
}
func (f WindowsFirewall) isSuccess(output string) bool {
if trimmed := core.Trim(strings.ToLower(output)); trimmed == "" || strings.Contains(trimmed, "ok") == true {
if trimmed := core.Trim(strings.ToUpper(output)); trimmed == "" || strings.Contains(trimmed, "OK") == true {
return true
} else {
return false