获取代理使用中的证书

addon-dailer
王伯荣 2 years ago
parent afe64aaae5
commit 2e37bb8222

@ -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