Skip to content

Commit

Permalink
fix: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliandev02 committed Aug 19, 2024
1 parent 2ffd739 commit 8e1a0ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ async fn main() -> Result <()> {
std::process::exit(1);
});

let port_range = config.min_port..=config.max_port;
let port_range = config.server.min_port..=config.server.max_port;
if port_range.is_empty() {
eprintln!("{RED}{BOLD} ! {RESET} Port range is empty{C_RESET}");
}
Server::new(
port_range,
config.secret.as_deref(),
config.control_port.unwrap_or(7835),
config.require_id.unwrap_or(false),
config.whitelist_static_port.unwrap_or(Vec::new())
config.server.secret.as_deref(),
config.server.control_port.unwrap_or(7835),
config.server.require_id.unwrap_or(false),
config.server.whitelist_static_port.unwrap_or(Vec::new())
).listen().await?;
}
else {
Expand Down

0 comments on commit 8e1a0ad

Please sign in to comment.