feat: v0.2.0-rc
This commit is contained in:
@@ -186,7 +186,7 @@ impl ProxyHttp for ProxyApp {
|
||||
end_of_stream: bool,
|
||||
_ctx: &mut Self::CTX,
|
||||
) {
|
||||
log::info!("Body {}: [[[{}]]] ",end_of_stream,
|
||||
log::info!("Body {}: [[[\n{}\n]]] ",end_of_stream,
|
||||
body.as_ref().map(|bytes|
|
||||
String::from_utf8_lossy(bytes.iter().as_slice())
|
||||
).unwrap_or_else(|| "<none>".into())
|
||||
|
||||
@@ -39,6 +39,6 @@ pub struct ProxyItem {
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct ProxyTls {
|
||||
pub intermediate_cert: String,
|
||||
pub intermediate_key: String,
|
||||
pub issuer_cert: String,
|
||||
pub issuer_key: String,
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ struct Callback {
|
||||
|
||||
impl Callback {
|
||||
fn new(proxy_tls: &ProxyTls) -> Result<Self, String> {
|
||||
let (cert, cert_pem) = cert::load_certificate(&proxy_tls.intermediate_cert, &proxy_tls.intermediate_key)?;
|
||||
let (cert, cert_pem) = cert::load_certificate(&proxy_tls.issuer_cert, &proxy_tls.issuer_key)?;
|
||||
Ok(Self {
|
||||
intermediate_certificate: cert,
|
||||
intermediate_certificate_pem: cert_pem,
|
||||
|
||||
Reference in New Issue
Block a user