fixed munged match block that somehow happened
This commit is contained in:
parent
174713448e
commit
cb8ee66ec8
BIN
epistlebox
BIN
epistlebox
Binary file not shown.
|
@ -104,18 +104,18 @@ fn main() {
|
||||||
Err(_why) => {
|
Err(_why) => {
|
||||||
eprintln!("-!- could not parse '{}' as a port number",arg);
|
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();
|
let mut listeners:Vec<(PortPrivacy,u16,TcpListener)> = Vec::new();
|
||||||
|
|
Loading…
Reference in New Issue