mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-10 06:34:03 -04:00
Allow passing private key using file.
Adds warning about passing key directly in CLI. On *nix systems, checks file permissions for warnings. Fixes #19
This commit is contained in:
parent
7545c7a3a8
commit
75d6a0a11c
2 changed files with 63 additions and 8 deletions
|
@ -22,6 +22,10 @@ async fn main() -> anyhow::Result<()> {
|
|||
let config = Config::from_args().with_context(|| "Failed to read config")?;
|
||||
init_logger(&config)?;
|
||||
|
||||
for warning in &config.warnings {
|
||||
warn!("{}", warning);
|
||||
}
|
||||
|
||||
// Initialize the port pool for each protocol
|
||||
let tcp_port_pool = TcpPortPool::new();
|
||||
let udp_port_pool = UdpPortPool::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue