From 362efb832c33342236a42a09d8a4d0c2163836d2 Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 4 Jun 2026 13:17:57 +0200 Subject: [PATCH] Fixup presharedkey --- client/ui/client_ui.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/ui/client_ui.go b/client/ui/client_ui.go index 785275430..b2f0fceb4 100644 --- a/client/ui/client_ui.go +++ b/client/ui/client_ui.go @@ -1375,7 +1375,13 @@ func (s *serviceClient) getSrvConfig() { if s.showAdvancedSettings { s.iMngURL.SetText(s.managementURL) - s.iPreSharedKey.SetText(cfg.PreSharedKey) + // Show the raw daemon-side value (which is the redacted + // "**********" sentinel when the daemon has a PSK on disk or + // applied via MDM). protoConfigToConfig strips the sentinel so + // hasSettingsChanged / saveSettings see an empty field, but the + // visual indicator must remain so the user knows a PSK is in + // effect. + s.iPreSharedKey.SetText(srvCfg.PreSharedKey) s.iInterfaceName.SetText(cfg.WgIface) s.iInterfacePort.SetText(strconv.Itoa(cfg.WgPort)) if cfg.MTU != 0 {