From 9d5b0515eae0cf3989c4b8a4001bd047131e24e8 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Sun, 6 Apr 2025 20:16:15 +0300 Subject: [PATCH] remove websocket config --- conf.yml | 1 - src/flowgate.rs | 3 +-- src/main.rs | 8 +------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/conf.yml b/conf.yml index f713e41..f2d554d 100755 --- a/conf.yml +++ b/conf.yml @@ -4,7 +4,6 @@ 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) incoming_ip_forwarding: none # Read IP forwarding on incoming connections (optional, default - none) -websocket_host: localhost:999 # Websocket messaging host to edit sites (optional, default - null) sites: - domain: localhost # Site domain (use wildcard matching) diff --git a/src/flowgate.rs b/src/flowgate.rs index a428920..8d563bd 100755 --- a/src/flowgate.rs +++ b/src/flowgate.rs @@ -1,4 +1,3 @@ pub mod config; pub mod server; -pub mod ssl_cert; -pub mod websocket; \ No newline at end of file +pub mod ssl_cert; \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index c6f63a7..9111011 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use std::{fs, path::Path, sync::{Arc, RwLock}}; -use flowgate::{config::Config, server::FlowgateServer, websocket}; +use flowgate::{config::Config, server::FlowgateServer}; fn main() { colog::init(); @@ -13,10 +13,4 @@ fn main() { let server = FlowgateServer::new(config.clone()); server.start(); - - if config.read().unwrap().websocket_host.is_some() { - websocket::start_server(config); - } else { - loop {} - } } \ No newline at end of file