fea: tls for socks5
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled

This commit is contained in:
Daniel Ding
2025-03-22 10:18:20 +08:00
parent 269ed244c0
commit 2f2e20e46a
13 changed files with 53 additions and 32 deletions

4
pkg/cache/user.go vendored
View File

@@ -4,7 +4,7 @@ import (
"bufio"
"crypto/x509"
"encoding/pem"
"io/ioutil"
"os"
"strings"
"sync"
"time"
@@ -174,7 +174,7 @@ func (w *user) Timeout(user *models.User) bool {
func (w *user) Check(obj *models.User) (*models.User, error) {
if w.Cert != "" {
pemData, err := ioutil.ReadFile(w.Cert)
pemData, err := os.ReadFile(w.Cert)
if err != nil {
return nil, err
}