From ac856f417474273df3ab0d8643f143dfde020454 Mon Sep 17 00:00:00 2001 From: eleksir Date: Tue, 24 Jun 2025 16:11:43 +0300 Subject: [PATCH] Fix empty font name and incorrect font size name in VPN plugin output --- internal/lib/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/lib/config.go b/internal/lib/config.go index 6146f14..22a9c03 100644 --- a/internal/lib/config.go +++ b/internal/lib/config.go @@ -1049,7 +1049,7 @@ func ReadConf(defaultConfig []byte) (*MyConfig, error) { } if sampleConfig.Vpn.Font == "" { - sampleConfig.Vpn.FontSize = sampleConfig.Font + sampleConfig.Vpn.Font = sampleConfig.Font } if sampleConfig.Vpn.FontSize == "" { @@ -1463,6 +1463,7 @@ func ReadConf(defaultConfig []byte) (*MyConfig, error) { if sampleConfig.CmdRun.Cmd == "" && sampleConfig.CmdRun.Enabled { sampleConfig.CmdRun.Enabled = false + log.Print( "Setting sampleConfig.CmdRun.Enabled to false because sampleConfig.CmdRun.Cmd is not set", )