mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -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 {
|
||||
hw, err := net.ParseMAC(mac)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
hw, _ := net.ParseMAC(mac)
|
||||
e := &Endpoint{
|
||||
IP: net.ParseIP(ip),
|
||||
HW: hw,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue