Merge pull request #38 from wangborong12345/feat_get_proxy_cert

添加获取 proxy 使用中的 CA 证书
addon-dailer
liqiang 2 years ago committed by GitHub
commit 07acf56e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,7 @@ package proxy
import ( import (
"bytes" "bytes"
"context" "context"
"crypto/x509"
"io" "io"
"net" "net"
"net/http" "net/http"
@ -308,3 +309,7 @@ func (proxy *Proxy) handleConnect(res http.ResponseWriter, req *http.Request) {
transfer(log, conn, cconn) transfer(log, conn, cconn)
} }
func (proxy *Proxy) GetCertificate() x509.Certificate {
return proxy.interceptor.ca.RootCert
}

Loading…
Cancel
Save