functional server config
This commit is contained in:
@@ -8,7 +8,7 @@ use std::time::Duration;
|
||||
use crate::protocol;
|
||||
use crate::conf;
|
||||
|
||||
pub fn start_proxy(servers: Arc<RwLock<conf::Config>>){
|
||||
pub fn start(servers: Arc<RwLock<conf::Config>>){
|
||||
let listener = TcpListener::bind(String::from("0.0.0.0:") + servers.read().unwrap().get_port()).unwrap();
|
||||
let guard = Arc::new(RwLock::new(guard::Guard::new()));
|
||||
for stream in listener.incoming() {
|
||||
|
||||
Reference in New Issue
Block a user