Corrected wrong method
This commit is contained in:
parent
82188d1494
commit
a12ecb50fb
@ -71,7 +71,7 @@ fn wg_with_text(
|
|||||||
|
|
||||||
let wg_output_string = String::from_utf8(wg_output.stdout)?;
|
let wg_output_string = String::from_utf8(wg_output.stdout)?;
|
||||||
let wg = WireGuard::try_from(&wg_output_string as &str)?;
|
let wg = WireGuard::try_from(&wg_output_string as &str)?;
|
||||||
Ok(Response::new(Body::from(wg.render())))
|
Ok(Response::new(Body::from(wg.render_with_names(Some(&pehm)))))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn perform_request(
|
fn perform_request(
|
||||||
|
@ -126,7 +126,7 @@ impl TryFrom<&str> for WireGuard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl WireGuard {
|
impl WireGuard {
|
||||||
fn render_with_names(&self, pehm: Option<&PeerEntryHashMap>) -> String {
|
pub(crate) fn render_with_names(&self, pehm: Option<&PeerEntryHashMap>) -> String {
|
||||||
let mut latest_handshakes = Vec::new();
|
let mut latest_handshakes = Vec::new();
|
||||||
let mut sent_bytes = Vec::new();
|
let mut sent_bytes = Vec::new();
|
||||||
let mut received_bytes = Vec::new();
|
let mut received_bytes = Vec::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user