mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
balls
This commit is contained in:
parent
974dc2e010
commit
6117b5c579
1 changed files with 1 additions and 2 deletions
|
@ -64,7 +64,7 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string {
|
|||
if r.SrcAddress != "" {
|
||||
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.SrcAddress))
|
||||
} else {
|
||||
rule = append(rule, "connectaddress=0.0.0.0")
|
||||
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.DstAddress))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,6 @@ func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error
|
|||
rule := f.generateRule(r, enabled)
|
||||
if enabled == true {
|
||||
rule = append([]string{"interface", "portproxy", "add", "v4tov4"}, rule...)
|
||||
|
||||
} else {
|
||||
rule = append([]string{"interface", "portproxy", "delete", "v4tov4"}, rule...)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue