From dcdb36c3d28ce7f3fe42d77bd2b0a5843cd66d2d Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Wed, 27 Nov 2024 22:39:20 +0800 Subject: [PATCH] Small fix Fix: 6066354b8ca7ffee82380eb3fac1ab1899b4482d (Let setup dns can be editable) --- Makefile | 2 +- template/render_dns.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0846a56..60ce48b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ COMMIT = $(shell git rev-parse --short HEAD) TAG = $(shell git describe --tags --always) VERSION = $(TAG:v%=%) -PARAMS = -v -trimpath -ldflags "-X 'github.com/sagernet/serenity/constant.Version=$(VERSION)' -s -w -buildid=" +PARAMS = -v -trimpath -ldflags "-X 'git.puqns67.icu/Puqns67/serenity/constant.Version=$(VERSION)' -s -w -buildid=" MAIN_PARAMS = $(PARAMS) MAIN = ./cmd/serenity PREFIX ?= $(shell go env GOPATH) diff --git a/template/render_dns.go b/template/render_dns.go index bdc2f65..2daa76a 100644 --- a/template/render_dns.go +++ b/template/render_dns.go @@ -59,7 +59,7 @@ func (t *Template) renderDNS(metadata M.Metadata, options *option.Options) error dnsLocal := getOrDefault(t.DNSLocal, DefaultDNSLocal) dnsSetup := getOrDefault(t.DNSSetup, DefaultDNSSetup) directTag := getOrDefault(t.DirectTag, DefaultDirectTag) - dnsSetupDetour := ifElse(dnsSetup != "local", "", directTag) + dnsSetupDetour := ifElse(dnsSetup == "local", "", directTag) options.DNS = &option.DNSOptions{ Servers: []option.DNSServerOptions{},