Skip to content

Commit

Permalink
Log D-Bus client requests in Daemon
Browse files Browse the repository at this point in the history
Log connect and disconnect requests from D-Bus clients in the Daemon.

Signed-off-by: hwipl <33433250+hwipl@users.noreply.github.com>
  • Loading branch information
hwipl committed May 24, 2024
1 parent d02bc0c commit b5a688d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,12 @@ func (d *Daemon) handleDBusRequest(request *dbusapi.Request) {
}

// connect VPN
log.Info("Daemon got connect request from client")
d.connectVPN(login)

case dbusapi.RequestDisconnect:
// diconnect VPN
log.Info("Daemon got disconnect request from client")
d.disconnectVPN()
}
}
Expand Down

0 comments on commit b5a688d

Please sign in to comment.