mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-25 17:21:34 +00:00
Fix WireGuard endpoint stopping on device sleep
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user