mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
mips
This commit is contained in:
@@ -9,6 +9,7 @@ use std::sync::Arc;
|
||||
|
||||
use crate::{common::global_ctx::ArcGlobalCtx, peers::peer_manager::PeerManager};
|
||||
|
||||
#[cfg(feature = "wireguard")]
|
||||
pub mod wireguard;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
@@ -22,3 +23,28 @@ pub trait VpnPortal: Send + Sync {
|
||||
fn name(&self) -> String;
|
||||
async fn list_clients(&self) -> Vec<String>;
|
||||
}
|
||||
|
||||
pub struct NullVpnPortal;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl VpnPortal for NullVpnPortal {
|
||||
async fn start(
|
||||
&mut self,
|
||||
_global_ctx: ArcGlobalCtx,
|
||||
_peer_mgr: Arc<PeerManager>,
|
||||
) -> anyhow::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn dump_client_config(&self, _peer_mgr: Arc<PeerManager>) -> String {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"null".to_string()
|
||||
}
|
||||
|
||||
async fn list_clients(&self) -> Vec<String> {
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user