Add Wintun support (#289)

This commit is contained in:
CzBiX 2021-11-09 02:36:31 +08:00 committed by GitHub
parent 0577c097fb
commit 16be0ce566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 1263 additions and 82 deletions

View file

@ -62,6 +62,9 @@ func (c *Control) Start() {
func (c *Control) Stop() {
//TODO: stop tun and udp routines, the lock on hostMap effectively does that though
c.CloseAllTunnels(false)
if err := c.f.Close(); err != nil {
c.l.WithError(err).Error("Close interface failed")
}
c.cancel()
c.l.Info("Goodbye")
}