diff --git a/bin/src/main.rs b/bin/src/main.rs index 892e914..4d65521 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -55,7 +55,7 @@ async fn run_server( .route("/", get(|| async { Redirect::permanent("/index.html") })) .route("/*path", get(serve_static)) .with_state(state); - let addr = SocketAddr::from(([127, 0, 0, 1], config.port)); + let addr = SocketAddr::from(([0, 0, 0, 0], config.port)); let listener = TcpListener::bind(&addr).await.unwrap(); task_tracker.spawn(async move { info!("The orca is hunting for stingrays..."); diff --git a/lib/src/pcap.rs b/lib/src/pcap.rs index 7bd5197..f86355b 100644 --- a/lib/src/pcap.rs +++ b/lib/src/pcap.rs @@ -1,3 +1,5 @@ +//! Parse QMDL files and create a pcap file. +//! Creates a plausible IP header and [GSMtap](https://osmocom.org/projects/baseband/wiki/GSMTAP) header and then puts the rest of the data under that for wireshark to parse. use crate::gsmtap::GsmtapMessage; use crate::diag::Timestamp; diff --git a/scripts/rayhunter_daemon b/scripts/rayhunter_daemon index 44485e7..3697c9c 100644 --- a/scripts/rayhunter_daemon +++ b/scripts/rayhunter_daemon @@ -6,7 +6,7 @@ case "$1" in start) echo -n "Starting rayhunter: " start-stop-daemon -S -b --make-pidfile --pidfile /tmp/rayhunter.pid \ - --startas /bin/bash -- -c "exec /data/rayhunter/rayhunter-daemon /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1" + --startas /bin/bash -- -c "RUST_LOG=info exec /data/rayhunter/rayhunter-daemon /data/rayhunter/config.toml > /data/rayhunter/rayhunter.log 2>&1" echo "done" ;; stop)