Fix WireGuard endpoint stopping on device sleep

This commit is contained in:
世界
2026-09-08 15:19:58 +08:00
parent d6ec014ca4
commit 6364d9a5f1
+2 -2
View File
@@ -300,9 +300,9 @@ func (e *Endpoint) BindUpdate() error {
func (e *Endpoint) onPauseUpdated(event int) {
switch event {
case pause.EventDevicePaused, pause.EventNetworkPause:
case pause.EventNetworkPause:
e.device.Down()
case pause.EventDeviceWake, pause.EventNetworkWake:
case pause.EventNetworkWake:
e.device.Up()
}
}