mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
fix: handling gracefully tun interfaces
This commit is contained in:
parent
d8fb7a8c53
commit
7295c1a5e3
1 changed files with 1 additions and 5 deletions
|
@ -22,11 +22,7 @@ type Endpoint struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewEndpointNoResolve(ip, mac, name string, bits uint32) *Endpoint {
|
func NewEndpointNoResolve(ip, mac, name string, bits uint32) *Endpoint {
|
||||||
hw, err := net.ParseMAC(mac)
|
hw, _ := net.ParseMAC(mac)
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
e := &Endpoint{
|
e := &Endpoint{
|
||||||
IP: net.ParseIP(ip),
|
IP: net.ParseIP(ip),
|
||||||
HW: hw,
|
HW: hw,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue