Skip to content

Commit 970c500

Browse files
committed
Update deps and CI actions
1 parent f642604 commit 970c500

242 files changed

Lines changed: 63195 additions & 2456 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
go-version-file: 'go.mod'
2929

3030
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
31+
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
3232

3333
- name: Autobuild
34-
uses: github/codeql-action/autobuild@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
34+
uses: github/codeql-action/autobuild@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
3535

3636
- name: Perform CodeQL Analysis
37-
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
37+
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1

‎.github/workflows/releases.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130

131131
- name: Create release and upload assets
132132
id: create_release
133-
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
133+
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
134134
if: startsWith(github.ref, 'refs/tags/') && env.release_exists == 'false'
135135
env:
136136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -148,7 +148,7 @@ jobs:
148148
149149
- name: Upload assets to existing release
150150
id: upload_to_existing_release
151-
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
151+
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
152152
if: startsWith(github.ref, 'refs/tags/') && env.release_exists == 'true'
153153
env:
154154
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/zizmor.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
persist-credentials: false
2828

2929
- name: Run zizmor
30-
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
30+
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4

‎dnscrypt-proxy/common.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"time"
1515
"unicode"
1616

17-
iradix "github.com/hashicorp/go-immutable-radix"
17+
iradix "github.com/hashicorp/go-immutable-radix/v2"
1818
"github.com/jedisct1/dlog"
1919
"github.com/k-sone/critbitgo"
2020
)
@@ -319,7 +319,7 @@ func ProcessConfigLines(lines string, processor func(line string, lineNo int) er
319319
// - ips (map): exact IP addresses
320320
// - prefixes (radix tree): wildcard prefix rules (e.g. "192.168.*")
321321
// - networks (critbit net): CIDR network masks (e.g. "10.0.0.0/8")
322-
func LoadIPRules(lines string, prefixes *iradix.Tree, ips map[string]any, networks *critbitgo.Net) (*iradix.Tree, error) {
322+
func LoadIPRules(lines string, prefixes *iradix.Tree[struct{}], ips map[string]any, networks *critbitgo.Net) (*iradix.Tree[struct{}], error) {
323323
err := ProcessConfigLines(lines, func(line string, lineNo int) error {
324324
if strings.Contains(line, "/") {
325325
if networks == nil {
@@ -338,7 +338,7 @@ func LoadIPRules(lines string, prefixes *iradix.Tree, ips map[string]any, networ
338338
}
339339

340340
if trailingStar {
341-
prefixes, _, _ = prefixes.Insert([]byte(cleanLine), 0)
341+
prefixes, _, _ = prefixes.Insert([]byte(cleanLine), struct{}{})
342342
} else {
343343
ips[cleanLine] = true
344344
}

‎dnscrypt-proxy/common_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"testing"
99

10-
iradix "github.com/hashicorp/go-immutable-radix"
10+
iradix "github.com/hashicorp/go-immutable-radix/v2"
1111
"github.com/jedisct1/dlog"
1212
"github.com/k-sone/critbitgo"
1313
)
@@ -46,7 +46,7 @@ func TestLoadIPRulesErrorLineNumbers(t *testing.T) {
4646
t.Fatal(err)
4747
}
4848
ips := make(map[string]any)
49-
if _, err := LoadIPRules("# Rules\n\n"+tt.rule+"\n192.0.2.1\n", iradix.New(), ips, tt.networks); err != nil {
49+
if _, err := LoadIPRules("# Rules\n\n"+tt.rule+"\n192.0.2.1\n", iradix.New[struct{}](), ips, tt.networks); err != nil {
5050
t.Fatal(err)
5151
}
5252
if ips["192.0.2.1"] != true {

‎dnscrypt-proxy/plugin_allow_ip.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"sync"
88

99
"codeberg.org/miekg/dns"
10-
iradix "github.com/hashicorp/go-immutable-radix"
10+
iradix "github.com/hashicorp/go-immutable-radix/v2"
1111
"github.com/jedisct1/dlog"
1212
"github.com/k-sone/critbitgo"
1313
)
1414

1515
type PluginAllowedIP struct {
16-
allowedPrefixes *iradix.Tree
16+
allowedPrefixes *iradix.Tree[struct{}]
1717
allowedIPs map[string]any
1818
allowedNetworks *critbitgo.Net
1919
logger io.Writer
@@ -24,7 +24,7 @@ type PluginAllowedIP struct {
2424
rwLock sync.RWMutex
2525
configFile string
2626
configWatcher *ConfigWatcher
27-
stagingPrefixes *iradix.Tree
27+
stagingPrefixes *iradix.Tree[struct{}]
2828
stagingIPs map[string]any
2929
stagingNetworks *critbitgo.Net
3030
}
@@ -46,7 +46,7 @@ func (plugin *PluginAllowedIP) Init(proxy *Proxy) error {
4646
return err
4747
}
4848

49-
plugin.allowedPrefixes = iradix.New()
49+
plugin.allowedPrefixes = iradix.New[struct{}]()
5050
plugin.allowedIPs = make(map[string]any)
5151
plugin.allowedNetworks = critbitgo.NewNet()
5252

@@ -72,7 +72,7 @@ func (plugin *PluginAllowedIP) Drop() error {
7272
func (plugin *PluginAllowedIP) PrepareReload() error {
7373
return StandardPrepareReloadPattern(plugin.Name(), plugin.configFile, func(lines string) error {
7474
// Create staging structures
75-
plugin.stagingPrefixes = iradix.New()
75+
plugin.stagingPrefixes = iradix.New[struct{}]()
7676
plugin.stagingIPs = make(map[string]any)
7777
plugin.stagingNetworks = critbitgo.NewNet()
7878

‎dnscrypt-proxy/plugin_block_ip.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"sync"
88

99
"codeberg.org/miekg/dns"
10-
iradix "github.com/hashicorp/go-immutable-radix"
10+
iradix "github.com/hashicorp/go-immutable-radix/v2"
1111
"github.com/jedisct1/dlog"
1212
"github.com/k-sone/critbitgo"
1313
)
1414

1515
type PluginBlockIP struct {
16-
blockedPrefixes *iradix.Tree
16+
blockedPrefixes *iradix.Tree[struct{}]
1717
blockedIPs map[string]any
1818
blockedNetworks *critbitgo.Net
1919
logger io.Writer
@@ -24,7 +24,7 @@ type PluginBlockIP struct {
2424
rwLock sync.RWMutex
2525
configFile string
2626
configWatcher *ConfigWatcher
27-
stagingPrefixes *iradix.Tree
27+
stagingPrefixes *iradix.Tree[struct{}]
2828
stagingIPs map[string]any
2929
stagingNetworks *critbitgo.Net
3030
}
@@ -46,7 +46,7 @@ func (plugin *PluginBlockIP) Init(proxy *Proxy) error {
4646
return err
4747
}
4848

49-
plugin.blockedPrefixes = iradix.New()
49+
plugin.blockedPrefixes = iradix.New[struct{}]()
5050
plugin.blockedIPs = make(map[string]any)
5151
plugin.blockedNetworks = critbitgo.NewNet()
5252

@@ -72,7 +72,7 @@ func (plugin *PluginBlockIP) Drop() error {
7272
func (plugin *PluginBlockIP) PrepareReload() error {
7373
return StandardPrepareReloadPattern(plugin.Name(), plugin.configFile, func(lines string) error {
7474
// Create staging structures
75-
plugin.stagingPrefixes = iradix.New()
75+
plugin.stagingPrefixes = iradix.New[struct{}]()
7676
plugin.stagingIPs = make(map[string]any)
7777
plugin.stagingNetworks = critbitgo.NewNet()
7878

‎dnscrypt-proxy/service_linux.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package main
44

55
import (
6-
"github.com/coreos/go-systemd/daemon"
6+
"github.com/coreos/go-systemd/v22/daemon"
77
clocksmith "github.com/jedisct1/go-clocksmith"
88
)
99

‎dnscrypt-proxy/systemd_linux.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net"
77
"slices"
88

9-
"github.com/coreos/go-systemd/activation"
9+
"github.com/coreos/go-systemd/v22/activation"
1010
"github.com/jedisct1/dlog"
1111
)
1212

‎go.mod‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
module github.com/dnscrypt/dnscrypt-proxy
22

3-
go 1.27
3+
go 1.27.0
44

55
require (
66
codeberg.org/miekg/dns v0.6.109
77
github.com/BurntSushi/toml v1.6.0
88
github.com/VividCortex/ewma v1.2.0
99
github.com/cloudflare/circl v1.6.5
10-
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
10+
github.com/coreos/go-systemd/v22 v22.7.0
1111
github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185
1212
github.com/fsnotify/fsnotify v1.10.1
1313
github.com/gorilla/websocket v1.5.3
14-
github.com/hashicorp/go-immutable-radix v1.3.1
14+
github.com/hashicorp/go-immutable-radix/v2 v2.1.0
1515
github.com/hectane/go-acl v1.0.0
1616
github.com/jedisct1/dlog v0.0.0-20241212093805-3c5fd791b405
1717
github.com/jedisct1/go-clocksmith v0.0.0-20260103230147-eff3e038eebd
1818
github.com/jedisct1/go-dnsstamps v0.0.0-20260518121737-6579dc73e4a2
19-
github.com/jedisct1/go-hpke-compact v0.0.0-20241212093903-5caa4621366f
19+
github.com/jedisct1/go-hpke-compact v0.0.0-20260917221930-f479271ae452
2020
github.com/jedisct1/go-ipcrypt v0.1.2
2121
github.com/jedisct1/go-minisign v0.0.0-20260527172527-a09352b57a22
2222
github.com/jedisct1/go-sieve-cache v0.1.9
2323
github.com/jedisct1/xsecretbox v0.0.0-20241212092125-3afc4917ac41
2424
github.com/k-sone/critbitgo v1.4.0
2525
github.com/kardianos/service v1.3.0
2626
github.com/lifenjoiner/dhcpdns v0.0.7
27+
github.com/miekg/dns v1.1.72
2728
github.com/powerman/check v1.13.0
2829
github.com/quic-go/quic-go v0.62.0
29-
golang.org/x/crypto v0.56.0
30-
golang.org/x/net v0.58.0
31-
golang.org/x/sys v0.47.0
30+
golang.org/x/crypto v0.57.0
31+
golang.org/x/net v0.59.0
32+
golang.org/x/sys v0.48.0
3233
gopkg.in/natefinch/lumberjack.v2 v2.2.1
3334
)
3435

3536
require (
3637
github.com/hashicorp/go-syslog v1.0.0 // indirect
37-
github.com/hashicorp/go-uuid v1.0.3 // indirect
38-
github.com/hashicorp/golang-lru v1.0.2 // indirect
38+
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
3939
github.com/quic-go/qpack v0.6.0 // indirect
4040
go.uber.org/mock v0.6.0 // indirect
41-
golang.org/x/text v0.41.0 // indirect
41+
golang.org/x/mod v0.41.0 // indirect
42+
golang.org/x/sync v0.23.0 // indirect
43+
golang.org/x/text v0.42.0 // indirect
44+
golang.org/x/tools v0.49.0 // indirect
4245
)

0 commit comments

Comments
 (0)