[client] Allow wireguard port to be zero in UI and show port in status command (#6158)

* Allow wireguard port to be set to 0 in UI

* Add wireguard port to cmd status

* Correct protoc version
This commit is contained in:
Theodor Midtlien
2026-06-04 15:04:11 +02:00
committed by GitHub
parent eac6d501c3
commit 5993ec6e43
8 changed files with 40 additions and 13 deletions
+1
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)