mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-03-31 06:24:00 -04:00
chore(lint): upgrade to v1.56.2
This commit is contained in:
@@ -2,7 +2,7 @@ ARG BUILDPLATFORM=linux/amd64
|
||||
ARG ALPINE_VERSION=3.19
|
||||
ARG GO_VERSION=1.22
|
||||
ARG XCPUTRANSLATE_VERSION=v0.6.0
|
||||
ARG GOLANGCI_LINT_VERSION=v1.55.2
|
||||
ARG GOLANGCI_LINT_VERSION=v1.56.2
|
||||
ARG MOCKGEN_VERSION=v1.6.0
|
||||
|
||||
FROM --platform=${BUILDPLATFORM} qmcgaw/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate
|
||||
|
||||
@@ -134,7 +134,7 @@ func (p *Provider) Update(ctx context.Context, client *http.Client, ip netip.Add
|
||||
}
|
||||
|
||||
decoder := xml.NewDecoder(response.Body)
|
||||
decoder.CharsetReader = func(encoding string, input io.Reader) (io.Reader, error) {
|
||||
decoder.CharsetReader = func(_ string, input io.Reader) (io.Reader, error) {
|
||||
return input, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ func New(settings Settings) (resolver *net.Resolver, err error) {
|
||||
dialer := net.Dialer{Timeout: settings.Timeout}
|
||||
return &net.Resolver{
|
||||
PreferGo: true,
|
||||
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
Dial: func(ctx context.Context, _, _ string) (net.Conn, error) {
|
||||
const protocol = "udp"
|
||||
return dialer.DialContext(ctx, protocol, *settings.Address)
|
||||
},
|
||||
|
||||
@@ -80,7 +80,7 @@ func Test_IPv6(t *testing.T) {
|
||||
}
|
||||
|
||||
func Fuzz_IPv6(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, ipv6A, ipv6B, ipv6C []byte,
|
||||
f.Fuzz(func(_ *testing.T, ipv6A, ipv6B, ipv6C []byte,
|
||||
garbageA, garbageB, garbageC string) {
|
||||
var arrayA [16]byte
|
||||
if len(ipv6A) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user