From 8a4c41d5184a07e6813fc929bc2dad171dcfc7f2 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Mon, 21 Aug 2023 16:29:15 +0800 Subject: [PATCH] fix --- proxyserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxyserver/main.go b/proxyserver/main.go index c7784789..01264642 100644 --- a/proxyserver/main.go +++ b/proxyserver/main.go @@ -128,7 +128,7 @@ func main() { panic(err) } - cert, err := tls.LoadX509KeyPair(string(pemdata), string(keydata)) + cert, err := tls.X509KeyPair(pemdata, keydata) if err != nil { panic(err) }