From 95d372b643765f76d79888f25302275b988600f2 Mon Sep 17 00:00:00 2001 From: igoogolx <27353191+igoogolx@users.noreply.github.com> Date: Sun, 29 Dec 2024 19:45:34 +0800 Subject: [PATCH] v1.22.3 (#48) * fix: ignored bool config values * chore: upgrade dashboard --- internal/cfg/tun.go | 4 ++-- internal/configuration/config.go | 4 ++-- scripts/generate.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cfg/tun.go b/internal/cfg/tun.go index f949a23..d66c13a 100644 --- a/internal/cfg/tun.go +++ b/internal/cfg/tun.go @@ -57,8 +57,8 @@ func NewTun(defaultInterfaceName string) (*Config, error) { device, newLocalServer, rawConfig.Setting.HijackDns, - rawConfig.Setting.BlockQuic, + *rawConfig.Setting.BlockQuic, rawConfig.Setting.Stack, - rawConfig.Setting.ShouldFindProcess, + *rawConfig.Setting.ShouldFindProcess, }, nil } diff --git a/internal/configuration/config.go b/internal/configuration/config.go index 7a00416..d76af81 100644 --- a/internal/configuration/config.go +++ b/internal/configuration/config.go @@ -26,9 +26,9 @@ type SettingCfg struct { CustomizedOptions []string `json:"customizedOptions"` } `json:"dns"` Language string `json:"language,omitempty"` - BlockQuic bool `json:"blockQuic,omitempty"` + BlockQuic *bool `json:"blockQuic,omitempty"` Stack string `json:"stack"` - ShouldFindProcess bool `json:"shouldFindProcess,omitempty"` + ShouldFindProcess *bool `json:"shouldFindProcess,omitempty"` } type DnsServer struct { diff --git a/scripts/generate.go b/scripts/generate.go index d8e417b..693eb55 100644 --- a/scripts/generate.go +++ b/scripts/generate.go @@ -13,7 +13,7 @@ import ( func main() { download("https://github.com/igoogolx/lux-rules/releases/download/v2.4.0/rules.tar.gz", filepath.Join("internal", "cfg", "distribution", "ruleEngine", "rules.tar.gz")) - download("https://github.com/igoogolx/lux-client/releases/download/v1.1.6/dist-ui.tar.gz", filepath.Join("api", "routes", "dist.tar.gz")) + download("https://github.com/igoogolx/lux-client/releases/download/v1.1.8/dist-ui.tar.gz", filepath.Join("api", "routes", "dist.tar.gz")) } func download(url string, outputPath string) {