mirror of
https://github.com/luscis/openlan.git
synced 2025-10-17 06:20:40 +08:00
fea: tls for socks5
This commit is contained in:
4
pkg/cache/user.go
vendored
4
pkg/cache/user.go
vendored
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user