summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--device/uapi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/uapi.go b/device/uapi.go
index e33355d..87c5dd9 100644
--- a/device/uapi.go
+++ b/device/uapi.go
@@ -258,11 +258,11 @@ type ipcSetPeer struct {
}
func (peer *ipcSetPeer) handlePostConfig() {
- if peer.Peer == nil {
+ if peer.Peer == nil || peer.dummy {
return
}
peer.disableRoaming = peer.device.net.brokenRoaming && peer.endpoint != nil
- if !peer.dummy && peer.device.isUp() {
+ if peer.device.isUp() {
peer.Start()
if peer.pkaOn {
peer.SendKeepalive()