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:
Aram 🍐 2021-10-26 02:49:14 -04:00
parent 7545c7a3a8
commit 75d6a0a11c
2 changed files with 63 additions and 8 deletions

View file

@ -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();