misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-04-30 16:21:57 +02:00
commit 480f0daa8d
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 4 additions and 4 deletions

View file

@ -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)