mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
balls
This commit is contained in:
parent
33af19e90d
commit
d8512f23a8
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string {
|
||||||
return rule
|
return rule
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *WindowsFirewall) AllowPort(int port, string address, string proto, bool allow) error {
|
func (f *WindowsFirewall) AllowPort(port int, address string, proto string, allow bool) error {
|
||||||
ruleName := fmt.Sprintf("bettercap-rule-%s-%s-%d", address, proto, port)
|
ruleName := fmt.Sprintf("bettercap-rule-%s-%s-%d", address, proto, port)
|
||||||
nameField := fmt.Sprintf("name=\"%s\"", ruleName)
|
nameField := fmt.Sprintf("name=\"%s\"", ruleName)
|
||||||
protoField := fmt.Sprintf("protocol=%s", proto)
|
protoField := fmt.Sprintf("protocol=%s", proto)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue