Small fix

Fix: 6066354b8c (Let setup dns can be editable)
This commit is contained in:
Puqns67 2024-11-27 22:39:20 +08:00
parent 0a6589e9d3
commit dcdb36c3d2
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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{},