mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -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 {
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue