Closed stenya closed 1 year ago
Deadlock (infinite loop) happens when interfaceHandle() is called after the device was closed. Ticket: https://github.com/WireGuard/wgctrl-go/issues/134
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 !!! }
Deadlock (infinite loop) happens when interfaceHandle() is called after the device was closed. Ticket: https://github.com/WireGuard/wgctrl-go/issues/134
Issue explanation in code: