Add -n flag
This commit is contained in:
parent
293d9fbbb0
commit
60a0a3a081
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ async fn main() {
|
|||
let addr: SocketAddr = address.parse().unwrap();
|
||||
config.address = Some(addr);
|
||||
}
|
||||
if let Some(servername) = matches.opt_str("n") {
|
||||
config.servername = Some(servername);
|
||||
}
|
||||
|
||||
let addr = match config.address {
|
||||
Some(SocketAddr::V6(addr)) => addr.clone(),
|
||||
|
|
Loading…
Reference in a new issue