Skip to content

Commit

Permalink
fix(service): add missing flags to Arguments (#788)
Browse files Browse the repository at this point in the history
Co-authored-by: nikkoozz <58021642+nikkoozz@users.noreply.github.com>
  • Loading branch information
WaterLemons2k and nikkoozz committed Jul 26, 2023
1 parent 6bc09d7 commit 3d87280
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func getService() service.Service {
Name: "ddns-go",
DisplayName: "ddns-go",
Description: "简单好用的DDNS。自动更新域名解析到公网IP(支持阿里云、腾讯云dnspod、Cloudflare、Callback、华为云、百度云、Porkbun、GoDaddy、Google Domain)",
Arguments: []string{"-l", *listen, "-f", strconv.Itoa(*every), "-c", *configFilePath},
Arguments: []string{"-l", *listen, "-f", strconv.Itoa(*every), "-cacheTimes", strconv.Itoa(*ipCacheTimes), "-c", *configFilePath},
Dependencies: depends,
Option: options,
}
Expand All @@ -210,6 +210,10 @@ func getService() service.Service {
svcConfig.Arguments = append(svcConfig.Arguments, "-skipVerify")
}

if *customDNSServer != "" {
svcConfig.Arguments = append(svcConfig.Arguments, "-dns", *customDNSServer)
}

prg := &program{}
s, err := service.New(prg, svcConfig)
if err != nil {
Expand Down

0 comments on commit 3d87280

Please sign in to comment.