Add wireguard port to cmd status

This commit is contained in:
Theodor S. Midtlien
2026-05-15 17:59:31 +02:00
committed by Theodor S. Midtlien
parent ae034a7330
commit 54445f9e46
7 changed files with 31 additions and 10 deletions

View File

@@ -1072,6 +1072,7 @@ func (e *Engine) updateConfig(conf *mgmProto.PeerConfig) error {
state.PubKey = e.config.WgPrivateKey.PublicKey().String()
state.KernelInterface = !e.wgInterface.IsUserspaceBind()
state.FQDN = conf.GetFqdn()
state.WgPort = e.config.WgPort
e.statusRecorder.UpdateLocalPeerState(state)