mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-11 20:20:27 +08:00
fix(crypto): encode and decode of nil data
This commit is contained in:
@@ -31,7 +31,8 @@ type NIC struct {
|
||||
func NewNIC(ip, subnet, mtu string, cidrs ...string) NICIO {
|
||||
ifce, err := water.New(water.Config{DeviceType: water.TUN})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
logrus.Error(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
n := &NIC{
|
||||
ifce: ifce,
|
||||
|
||||
Reference in New Issue
Block a user