+3
-4
lines changedFilter options
+3
-4
lines changed Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ import (
7
7
"crypto/x509"
8
8
"errors"
9
9
"fmt"
10
-
"io/ioutil"
11
10
"net"
12
11
"net/url"
13
12
"os"
@@ -131,7 +130,7 @@ func LoadRoot(cfg map[string]string) (*Root, error) {
131
130
return nil, err
132
131
}
133
132
134
-
in, err := ioutil.ReadFile(certPath)
133
+
in, err := os.ReadFile(certPath)
135
134
if err != nil {
136
135
return nil, err
137
136
}
@@ -182,7 +181,7 @@ func parsePrivateKeySpec(spec string, cfg map[string]string) (crypto.Signer, err
182
181
// stored in the Path field.
183
182
log.Debug("loading private key file", specURL.Path)
184
183
path := filepath.Join(specURL.Host, specURL.Path)
185
-
in, err := ioutil.ReadFile(path)
184
+
in, err := os.ReadFile(path)
186
185
if err != nil {
187
186
return nil, err
188
187
}
@@ -202,7 +201,7 @@ func parsePrivateKeySpec(spec string, cfg map[string]string) (crypto.Signer, err
202
201
case "rofile":
203
202
log.Warning("Red October support is currently experimental")
204
203
path := filepath.Join(specURL.Host, specURL.Path)
205
-
in, err := ioutil.ReadFile(path)
204
+
in, err := os.ReadFile(path)
206
205
if err != nil {
207
206
return nil, err
208
207
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4