fix: handling gracefully tun interfaces

This commit is contained in:
evilsocket 2018-01-09 13:45:14 +01:00
commit 7295c1a5e3

View file

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