Add tunnel security config fields

This commit is contained in:
RWDai
2026-05-21 16:07:27 +08:00
parent b84e4a96e2
commit bd4f6b9206
5 changed files with 151 additions and 0 deletions
+6
View File
@@ -987,6 +987,8 @@ mod tests {
aether_url: gateway_base_url.clone(),
management_token: "token".to_string(),
node_name: Some("node-recovery".to_string()),
tunnel_security: None,
tunnel_encryption_key: None,
},
)];
let (shutdown_tx, shutdown_rx) = watch::channel(false);
@@ -1289,6 +1291,8 @@ mod tests {
aether_url: state.config.aether_url.clone(),
management_token: state.config.management_token.clone(),
node_name: Some(state.config.node_name.clone()),
tunnel_security: Some(state.config.tunnel_security),
tunnel_encryption_key: state.config.tunnel_encryption_key.clone(),
};
let client = Arc::new(AetherClient::new(
&state.config,
@@ -1311,6 +1315,8 @@ mod tests {
management_token: "token".to_string(),
public_ip: None,
node_name: "tunnel-test".to_string(),
tunnel_security: crate::config::TunnelSecurity::Off,
tunnel_encryption_key: None,
node_region: None,
heartbeat_interval: 1,
allowed_ports: vec![80, 443],