This commit is contained in:
takuya committed 2026-10-25 10:18:36 +03:00
1 parent fd2a9af45c
commit 4f70df55dd
1392 files changed
+10026

No files matched your search

File diff suppressed because it is too large. Load diff
+15
View File
@@ -0,0 +1,15 @@
use orbit_ctf::Server;
use std::net::TcpListener;
use std::path::PathBuf;
fn main() -> std::io::Result<()> {
let addr = std::env::var("LISTEN_ADDR").unwrap_or_else(|_| "127.0.0.1:8080".into());
let root = PathBuf::from(std::env::var("DATA_DIR").unwrap_or_else(|_| "./data".into()));
let listener = TcpListener::bind(&addr)?;
eprintln!("orbit-navigation-service listening on {addr}");
Server::new(root)?.serve(listener)
}