mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
refact: renamed package net to network to avoid collision with golang net package.
This commit is contained in:
parent
21236c257e
commit
48d27f274a
28 changed files with 298 additions and 298 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
"github.com/evilsocket/bettercap-ng/net"
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -19,12 +19,12 @@ var (
|
|||
)
|
||||
|
||||
type PfFirewall struct {
|
||||
iface *net.Endpoint
|
||||
iface *network.Endpoint
|
||||
filename string
|
||||
forwarding bool
|
||||
}
|
||||
|
||||
func Make(iface *net.Endpoint) FirewallManager {
|
||||
func Make(iface *network.Endpoint) FirewallManager {
|
||||
firewall := &PfFirewall{
|
||||
iface: iface,
|
||||
filename: pfFilePath,
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
"github.com/evilsocket/bettercap-ng/net"
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
)
|
||||
|
||||
type LinuxFirewall struct {
|
||||
iface *net.Endpoint
|
||||
iface *network.Endpoint
|
||||
forwarding bool
|
||||
redirections map[string]*Redirection
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ const (
|
|||
IPV4ForwardingFile = "/proc/sys/net/ipv4/ip_forward"
|
||||
)
|
||||
|
||||
func Make(iface *net.Endpoint) FirewallManager {
|
||||
func Make(iface *network.Endpoint) FirewallManager {
|
||||
firewall := &LinuxFirewall{
|
||||
iface: iface,
|
||||
forwarding: false,
|
||||
|
|
|
@ -5,16 +5,16 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
"github.com/evilsocket/bettercap-ng/net"
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
)
|
||||
|
||||
type WindowsFirewall struct {
|
||||
iface *net.Endpoint
|
||||
iface *network.Endpoint
|
||||
forwarding bool
|
||||
redirections map[string]*Redirection
|
||||
}
|
||||
|
||||
func Make(iface *net.Endpoint) FirewallManager {
|
||||
func Make(iface *network.Endpoint) FirewallManager {
|
||||
firewall := &WindowsFirewall{
|
||||
iface: iface,
|
||||
forwarding: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue