mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
Keeping original case for OK statement
This commit is contained in:
parent
5c991a58e3
commit
feb3ac3161
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(strings.ToLower(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