Remove redundant wg_key var
@@ -63,15 +63,7 @@ fn enable_remote_logging(server_internal_ip: IpAddr) -> Result<(), LogError> {
let res = init_udp(
&format!("0.0.0.0:{}", log.send_port),
&format!("{}:{}", server_internal_ip, log.dest_port),
- format!(
- "{} {}",
- SETTING
- .get_network()
- .wg_public_key
- .clone()
- .expect("Tried to init remote logging without WgKey!"),
- env!("CARGO_PKG_VERSION")
- ),
+ format!("{} {}", key, env!("CARGO_PKG_VERSION")),
Facility::LOG_USER,
level,
);
