mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
balls
This commit is contained in:
parent
4acffd316f
commit
a2425e7cff
1 changed files with 3 additions and 0 deletions
|
@ -58,10 +58,13 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if enabled == true {
|
if enabled == true {
|
||||||
|
rule = append(rule, fmt.Sprintf("protocol=%s", r.Protocol))
|
||||||
rule = append(rule, fmt.Sprintf("connectport=%d", r.SrcPort))
|
rule = append(rule, fmt.Sprintf("connectport=%d", r.SrcPort))
|
||||||
|
|
||||||
if r.SrcAddress != "" {
|
if r.SrcAddress != "" {
|
||||||
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.SrcAddress))
|
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.SrcAddress))
|
||||||
|
} else {
|
||||||
|
rule = append(rule, "connectaddress=0.0.0.0")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue