mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
9f390a722f
commit
480f0daa8d
4 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string {
|
|||
|
||||
func (f *WindowsFirewall) AllowPort(port int, address string, proto string, allow bool) error {
|
||||
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)
|
||||
// ipField := fmt.Sprintf("lolcalip=%s", address)
|
||||
portField := fmt.Sprintf("localport=%d", port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue