mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Merge pull request #112 from JacobReynolds/master
Fixing windows firewall case checks on netsh for #111
This commit is contained in:
commit
293092be17
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ func (f WindowsFirewall) IsForwardingEnabled() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f WindowsFirewall) isSuccess(output string) 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
|
return true
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue