Merge pull request #112 from JacobReynolds/master

Fixing windows firewall case checks on netsh for #111
This commit is contained in:
Simone Margaritelli 2018-02-28 20:54:37 +01:00 committed by GitHub
commit 293092be17
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(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