diff --git a/Cargo.toml b/Cargo.toml index 966c667..454d07d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "flowgate" -version = "0.1.1" +version = "0.1.2" edition = "2021" [dependencies] openssl = { version = "0.10.66", optional = true } -rustls = { version = "0.23.13", optional = true } +rustls = { version = "0.23.14", optional = true } rustls-pemfile = { version = "2.2.0", optional = true } serde_yml = "0.0.12" log = "0.4.22" diff --git a/conf.yml b/conf.yml index c80e0d9..dc06538 100644 --- a/conf.yml +++ b/conf.yml @@ -1,5 +1,5 @@ -http_host: localhost:80 # Http server host -https_host: localhost:443 # Https server host +http_host: localhost:80 # Http server host +https_host: localhost:443 # Https server host threadpool_size: 10 # Threadpool size (count of threads that accept requests) (optional, default - 10) connection_timeout: 10 # Read and write timeout of connections in seconds (optional, default - 10) diff --git a/src/flowgate/server.rs b/src/flowgate/server.rs index cb6e673..e4dcde6 100644 --- a/src/flowgate/server.rs +++ b/src/flowgate/server.rs @@ -191,20 +191,6 @@ impl FlowgateServer { addr: SocketAddr, https: bool ) -> Option<()> { - // let mut head: Vec = Vec::new(); - - // for char in stream.bytes() { - // if let Ok(char) = char { - // if char == b'\n' && &head[head.len()-3..] == b"\r\n\r" { - // head = head[..head.len()-3].to_vec(); - // break; - // } - // head.push(char); - // } else { - // return None; - // } - // } - let mut connected = Self::read_request(config.clone(), stream, addr, https, None)?; if connected.2 && connected.1.enable_keep_alive {