add catch-all allowed ip
This commit is contained in:
parent
cdc3acdb5e
commit
ace35f96ba
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ use anyhow::{Error, Result};
|
||||||
use base64::{engine::general_purpose, Engine as _};
|
use base64::{engine::general_purpose, Engine as _};
|
||||||
pub use command::{DaemonCommand, DaemonStartOptions};
|
pub use command::{DaemonCommand, DaemonStartOptions};
|
||||||
use fehler::throws;
|
use fehler::throws;
|
||||||
|
use ip_network::{IpNetwork, Ipv4Network};
|
||||||
use instance::DaemonInstance;
|
use instance::DaemonInstance;
|
||||||
use crate::wireguard::{StaticSecret, Peer, Interface, PublicKey};
|
use crate::wireguard::{StaticSecret, Peer, Interface, PublicKey};
|
||||||
pub use net::DaemonClient;
|
pub use net::DaemonClient;
|
||||||
|
|
@ -52,7 +53,7 @@ pub async fn daemon_main() -> Result<()> {
|
||||||
endpoint,
|
endpoint,
|
||||||
private_key,
|
private_key,
|
||||||
public_key,
|
public_key,
|
||||||
allowed_ips: vec![],
|
allowed_ips: vec![IpNetwork::V4(Ipv4Network::DEFAULT_ROUTE)],
|
||||||
}])?;
|
}])?;
|
||||||
|
|
||||||
iface.run().await;
|
iface.run().await;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue