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