mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +02:00
move code around
This commit is contained in:
parent
3b7d53f693
commit
9af09c8669
7 changed files with 9 additions and 10 deletions
|
|
@ -1,9 +1,5 @@
|
|||
mod namespace;
|
||||
mod proxy;
|
||||
pub mod link;
|
||||
|
||||
use crate::config::{Config, ForwardConfig, NamespaceConfig, NamespaceName};
|
||||
use crate::daemon::namespace::{NamespaceError, NetNs};
|
||||
use crate::namespace::{NamespaceError, NetNs};
|
||||
use futures::FutureExt;
|
||||
use futures::StreamExt;
|
||||
use futures_concurrency::stream::Merge;
|
||||
|
|
@ -18,7 +14,7 @@ use tokio::signal::ctrl_c;
|
|||
use tokio::signal::unix::{SignalKind, signal};
|
||||
use tokio_stream::wrappers::SignalStream;
|
||||
use tracing::{debug, error, info};
|
||||
use crate::daemon::proxy::{ActiveProxy, ProxyError};
|
||||
use crate::proxy::{ActiveProxy, ProxyError};
|
||||
|
||||
pub fn daemon(config: Config) -> MainResult {
|
||||
let rt = Runtime::new()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue