Skip to content

Commit

Permalink
native-tls-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Nov 3, 2024
1 parent ad84391 commit 968736d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napi/src/peer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::net::SocketAddr;

use chia_wallet_sdk::{
self as sdk, connect_peer, create_rustls_connector, load_ssl_cert, Connector,
self as sdk, connect_peer, create_native_tls_connector, load_ssl_cert, Connector,
};
use napi::bindgen_prelude::*;

Expand All @@ -19,7 +19,7 @@ impl Tls {
pub fn new(cert_path: String, key_path: String) -> Result<Self> {
let cert = load_ssl_cert(&cert_path, &key_path)
.map_err(|error| Error::from_reason(error.to_string()))?;
let tls = create_rustls_connector(&cert)
let tls = create_native_tls_connector(&cert)
.map_err(|error| Error::from_reason(error.to_string()))?;
Ok(Self(tls))
}
Expand Down

0 comments on commit 968736d

Please sign in to comment.