net-im/tencent-qq: bump version to 3.2.15_p241224
[gentoo-zh.git] / net-dns / ddns-go / files / ddns-go-6.7.2-remove-update-support.patch
blob92ebade9cb7c41dd6ca9f99fb03a774a1070c14c
1 From 2f1d1f27d3b38a78c747a2f1e056c54657e9c723 Mon Sep 17 00:00:00 2001
2 From: Puqns67 <me@puqns67.icu>
3 Date: Sun, 3 Dec 2023 17:17:25 +0800
4 Subject: [PATCH 1/3] build: remove update support for this build
6 ---
7 main.go | 9 ---------
8 1 file changed, 9 deletions(-)
10 diff --git a/main.go b/main.go
11 index b3fde96..153551e 100644
12 --- a/main.go
13 +++ b/main.go
14 @@ -18,7 +18,6 @@ import (
15 "github.com/jeessy2/ddns-go/v6/config"
16 "github.com/jeessy2/ddns-go/v6/dns"
17 "github.com/jeessy2/ddns-go/v6/util"
18 - "github.com/jeessy2/ddns-go/v6/util/update"
19 "github.com/jeessy2/ddns-go/v6/web"
20 "github.com/kardianos/service"
22 @@ -27,9 +26,6 @@ import (
23 // ddns-go version
24 var versionFlag = flag.Bool("v", false, "ddns-go version")
26 -// 更新 ddns-go
27 -var updateFlag = flag.Bool("u", false, "Upgrade ddns-go to the latest version")
29 // 监听地址
30 var listen = flag.String("l", ":9876", "Listen address")
32 @@ -72,11 +68,6 @@ func main() {
33 fmt.Println(version)
34 return
36 - if *updateFlag {
37 - update.Self(version)
38 - return
39 - }
41 // 安卓 go/src/time/zoneinfo_android.go 固定localLoc 为 UTC
42 if runtime.GOOS == "android" {
43 util.FixTimezone()
44 --
45 2.47.0