Skip to content

Commit 0f41ec2

Browse files
mattmattoxclaude
andcommitted
Fix deprecated io/ioutil usage
- Replace io/ioutil import with os package - Update ioutil.ReadFile to os.ReadFile for Go 1.19+ compatibility - Fixes staticcheck SA1019 warning in CI/CD pipeline 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4edba7a commit 0f41ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/proxy/HandleConnection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"crypto/tls"
55
"crypto/x509"
66
"fmt"
7-
"io/ioutil"
7+
"os"
88
"log"
99
"net"
1010

@@ -57,7 +57,7 @@ func dialWithSSL(address string) (net.Conn, error) {
5757

5858
// Load custom CA if provided
5959
if config.CFG.SSLCAFile != "" {
60-
caCert, err := ioutil.ReadFile(config.CFG.SSLCAFile)
60+
caCert, err := os.ReadFile(config.CFG.SSLCAFile)
6161
if err != nil {
6262
return nil, fmt.Errorf("failed to read CA file: %w", err)
6363
}

0 commit comments

Comments
 (0)