From bb03449e17f2a0716896fcdd9b2661fb545ed1b8 Mon Sep 17 00:00:00 2001 From: yzy613 Date: Sat, 16 Dec 2023 17:28:58 +0800 Subject: [PATCH] chore: regular updates --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- internal/client/public.go | 2 +- internal/common/common.go | 2 +- internal/server/public.go | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index a6fd2ad..df64c6f 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module ddns-watchdog go 1.21 require ( - github.com/aliyun/alibaba-cloud-sdk-go v1.62.600 + github.com/aliyun/alibaba-cloud-sdk-go v1.62.637 github.com/bitly/go-simplejson v0.5.1 - github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.64 + github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.72 github.com/spf13/pflag v1.0.5 ) @@ -16,8 +16,8 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect github.com/tjfoc/gmsm v1.4.1 // indirect - go.mongodb.org/mongo-driver v1.12.1 // indirect - golang.org/x/crypto v0.14.0 // indirect + go.mongodb.org/mongo-driver v1.13.1 // indirect + golang.org/x/crypto v0.16.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 194212b..e6dafa1 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/aliyun/alibaba-cloud-sdk-go v1.62.600 h1:MFkvRajk5tsEPTkNyEVhMmYGOGOhiApTAcFkEIRf37w= -github.com/aliyun/alibaba-cloud-sdk-go v1.62.600/go.mod h1:CJJYa1ZMxjlN/NbXEwmejEnBkhi0DV+Yb3B2lxf+74o= +github.com/aliyun/alibaba-cloud-sdk-go v1.62.637 h1:NF7J4pjB6sMi+T1v6l1qBr6j4yI21LWmWbva1TbtUVs= +github.com/aliyun/alibaba-cloud-sdk-go v1.62.637/go.mod h1:CJJYa1ZMxjlN/NbXEwmejEnBkhi0DV+Yb3B2lxf+74o= github.com/bitly/go-simplejson v0.5.1 h1:xgwPbetQScXt1gh9BmoJ6j9JMr3TElvuIyjR8pgdoow= github.com/bitly/go-simplejson v0.5.1/go.mod h1:YOPVLzCfwK14b4Sff3oP1AmGhI9T9Vsg84etUnlyp+Q= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.64 h1:ESkUy969zejtfYMWUj5exYKM/bqYbQZZNhcO2WBBTKA= -github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.64/go.mod h1:AZT3IyeViMA1qIoo6lM2eDobcTXORpqIQzSqdodah7E= +github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.72 h1:sf1+e0G3i+KZALjAmWKK+MaRfRkz0y+cBV9ZVr+RYRg= +github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.72/go.mod h1:AZT3IyeViMA1qIoo6lM2eDobcTXORpqIQzSqdodah7E= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= @@ -97,8 +97,8 @@ github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gi github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.mongodb.org/mongo-driver v1.12.0/go.mod h1:AZkxhPnFJUoH7kZlFkVKucV20K387miPfm7oimrSmK0= -go.mongodb.org/mongo-driver v1.12.1 h1:nLkghSU8fQNaK7oUmDhQFsnrtcoNy7Z6LVFKsEecqgE= -go.mongodb.org/mongo-driver v1.12.1/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ= +go.mongodb.org/mongo-driver v1.13.1 h1:YIc7HTYsKndGK4RFzJ3covLz1byri52x0IoMB0Pt/vk= +go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -108,8 +108,8 @@ golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= +golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= diff --git a/internal/client/public.go b/internal/client/public.go index 8eb3563..2d1590e 100644 --- a/internal/client/public.go +++ b/internal/client/public.go @@ -47,7 +47,7 @@ func Install() (err error) { serviceContent := []byte( "[Unit]\n" + "Description=" + ProjName + " Service\n" + - "After=network.target\n\n" + + "After=network-online.target\n\n" + "[Service]\n" + "Type=simple\n" + "WorkingDirectory=" + wd + diff --git a/internal/common/common.go b/internal/common/common.go index 972dcc1..ade5f10 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -11,7 +11,7 @@ import ( ) const ( - LocalVersion = "1.5.5" + LocalVersion = "1.5.6" DefaultAPIUrl = "https://yzyweb.cn/ddns-watchdog" DefaultIPv6APIUrl = "https://yzyweb.cn/ddns-watchdog6" ProjectUrl = "https://github.com/yzy613/ddns-watchdog" diff --git a/internal/server/public.go b/internal/server/public.go index 7fb8870..1100137 100644 --- a/internal/server/public.go +++ b/internal/server/public.go @@ -198,7 +198,7 @@ func Install() (err error) { serviceContent := []byte( "[Unit]\n" + "Description=" + RunningName + " Service\n" + - "After=network.target\n\n" + + "After=network-online.target\n\n" + "[Service]\n" + "Type=simple\n" + "WorkingDirectory=" + wd +