mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-21 23:03:08 +01:00
fix bug for vpp close
This commit is contained in:
parent
5fbb065897
commit
9e8e3ddc13
@ -238,6 +238,7 @@ func CreateVppTAP(iconfig config.InterfaceConf, loglevel string) (tapdev Device,
|
||||
tap.RxintCh = memif.GetInterruptChan()
|
||||
tap.RxintErrCh = memif.GetInterruptErrorChan()
|
||||
tap.TxQueues = len(details.TxQueues)
|
||||
tunErrorChannel = tap.errors
|
||||
tap.events <- EventUp
|
||||
return tap, nil
|
||||
}
|
||||
@ -336,8 +337,8 @@ func (tap *VppTap) Close() error {
|
||||
SocketID: tap.ifuid,
|
||||
SocketFilename: tap.memifSockPath,
|
||||
})
|
||||
go tap.memif.Close()
|
||||
go libmemif.Cleanup()
|
||||
tap.memif.Close()
|
||||
libmemif.Cleanup()
|
||||
tap.events <- EventDown
|
||||
close(tap.errors)
|
||||
close(tap.events)
|
||||
|
Loading…
Reference in New Issue
Block a user