[Add] port options in nix flake

This commit is contained in:
Alois 2026-05-16 17:49:25 +02:00
commit 6cc29a137e
3 changed files with 48 additions and 4 deletions

View file

@ -39,9 +39,14 @@ async fn main() {
dotenv().ok();
startup();
let rho_port = env::var("RHO_PORT")
.ok()
.and_then(|s| s.parse().ok())
.unwrap_or(959);
get_omega_connection();
tokio::spawn(async move {
if let Err(e) = start(959).await {
if let Err(e) = start(rho_port).await {
log_err!(0, util::logger::PrintType::General, "{}", e);
}
});