fixed munged match block that somehow happened

This commit is contained in:
Ellie D 2019-06-02 11:56:42 -05:00
parent 174713448e
commit cb8ee66ec8
2 changed files with 11 additions and 11 deletions

Binary file not shown.

View File

@ -104,18 +104,18 @@ fn main() {
Err(_why) => {
eprintln!("-!- could not parse '{}' as a port number",arg);
},
Ok(n) => match arg.chars().last() {
Some('w') => {
println!("-i- accepting only connections whitelisted in {} on port {}",ALLOWFILE_NAME,n);
ports.push((PortPrivacy::Whitelist,n));
},
Some('p') => {
println!("-i- accepting only local connections on port {}",n);
ports.push((PortPrivacy::Private,n));
},
_ => ports.push((PortPrivacy::Public,n)),
},
};
Ok(n) => match arg.chars().last() {
Some('w') => {
println!("-i- accepting only connections whitelisted in {} on port {}",ALLOWFILE_NAME,n);
ports.push((PortPrivacy::Whitelist,n));
},
Some('p') => {
println!("-i- accepting only local connections on port {}",n);
ports.push((PortPrivacy::Private,n));
},
_ => ports.push((PortPrivacy::Public,n)),
},
}
let mut listeners:Vec<(PortPrivacy,u16,TcpListener)> = Vec::new();