Fix wg feature

This commit is contained in:
Bogdan-Ștefan Neacşu
2024-07-03 09:04:01 +00:00
parent a9abea3446
commit 2159f71888
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -123,6 +123,8 @@ pub struct Gateway<St = PersistentStorage> {
ip_packet_router_opts: Option<LocalIpPacketRouterOpts>,
// Use None when wireguard feature is not enabled too
#[allow(dead_code)]
authenticator_opts: Option<LocalAuthenticatorOpts>,
/// ed25519 keypair used to assert one's identity.
@@ -561,6 +563,7 @@ impl<St> Gateway<St> {
info!("embedded ip packet router is disabled");
};
#[cfg(feature = "wireguard")]
let _wg_api = if let Some(opts) = self.authenticator_opts.clone() {
Some(
self.start_authenticator(&opts, shutdown.fork("wireguard"))