mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-09 04:48:16 +03:00
mitm: Add /mitm/mobileconfig and /mitm/certificate clash api endpoints
This commit is contained in:
@@ -91,6 +91,10 @@ func (e *Engine) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e *Engine) ExportCertificate() *x509.Certificate {
|
||||
return e.tlsCertificate
|
||||
}
|
||||
|
||||
func (e *Engine) NewConnection(ctx context.Context, this N.Dialer, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc) {
|
||||
if e.tlsDecryptionEnabled && metadata.ClientHello != nil {
|
||||
err := e.newTLS(ctx, this, conn, metadata, onClose)
|
||||
|
||||
Reference in New Issue
Block a user