Skip to content

Commit 5f88a91

Browse files
committed
Get rid of the latest ioutil bits
1 parent 3f23ff5 commit 5f88a91

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

dnscrypt-proxy/example-dnscrypt-proxy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ disabled_server_names = []
9797
force_tcp = false
9898

9999

100-
## Enable support for HTTP/3 (DoH3, HTTP over QUIC)
100+
## Enable *experimental* support for HTTP/3 (DoH3, HTTP over QUIC)
101101
## Note that, like DNSCrypt but unlike other HTTP versions, this uses
102102
## UDP and (usually) port 443 instead of TCP.
103103

dnscrypt-proxy/sources_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"bytes"
55
"fmt"
6-
"io/ioutil"
76
"net/http"
87
"net/http/httptest"
98
"net/url"
@@ -134,7 +133,7 @@ func loadSnakeoil(t *testing.T, d *SourceTestData) {
134133
}
135134

136135
func loadTestSourceNames(t *testing.T, d *SourceTestData) {
137-
files, err := ioutil.ReadDir(filepath.Join("testdata", "sources"))
136+
files, err := os.ReadDir(filepath.Join("testdata", "sources"))
138137
if err != nil {
139138
t.Fatalf("Unable to load list of test sources: %v", err)
140139
}
@@ -196,7 +195,7 @@ func loadFixtures(t *testing.T, d *SourceTestData) {
196195
}
197196

198197
func makeTempDir(t *testing.T, d *SourceTestData) {
199-
name, err := ioutil.TempDir("", "sources_test.go."+t.Name())
198+
name, err := os.MkdirTemp("", "sources_test.go."+t.Name())
200199
if err != nil {
201200
t.Fatalf("Unable to create temporary directory: %v", err)
202201
}

0 commit comments

Comments
 (0)