mirror of
https://github.com/bettercap/bettercap
synced 2025-08-22 06:23:18 -07:00
Update firewall_windows.go
This commit is contained in:
parent
8ae28f4b3d
commit
bcab45be63
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func (f *WindowsFirewall) AllowPort(port int, address string, proto string, allo
|
|||
}
|
||||
|
||||
func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error {
|
||||
if err := f.AllowPort(r.SrcPort, r.DstAddress, r.Protocol, enabled); err != nil {
|
||||
if err := f.AllowPort(r.SrcPort, r.SrcAddress, r.Protocol, enabled); err != nil {
|
||||
return err
|
||||
} else if err := f.AllowPort(r.DstPort, r.DstAddress, r.Protocol, enabled); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue