forked from mirror/serenity
parent
0a6589e9d3
commit
dcdb36c3d2
2
Makefile
2
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)
|
||||
|
@ -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{},
|
||||
|
Loading…
Reference in New Issue
Block a user