Changed main to only look at the config once instead of per connection

This commit is contained in:
int 80h
2020-05-06 23:19:34 -04:00
parent 83163f9a95
commit a066e54acc
3 changed files with 58 additions and 40 deletions

View File

@@ -9,10 +9,6 @@ use crate::status;
pub struct Connection {
pub stream: TlsStream<TcpStream>,
pub peer_addr: SocketAddr,
pub hostname: String,
pub dir: String,
pub cgi: String,
pub usrdir: bool,
}
impl Connection {