Closed stenya closed 1 year ago
Deadlock (infinite loop) happens when interfaceHandle() is called after the device was closed.
Issue explanation in code:
func issueTest() { devName := "your-device-name" client, _ := wgctrl.New() defer client.Close() client.Device(devName) // ok // TODO: disable (disconnect) WireGuard connection client.Device(devName) // BUG: deadlock in interfaceHandle() method !!! }
Pull-request with the fix: https://github.com/WireGuard/wgctrl-go/pull/133
Deadlock (infinite loop) happens when interfaceHandle() is called after the device was closed.
Issue explanation in code:
Pull-request with the fix: https://github.com/WireGuard/wgctrl-go/pull/133