use getserviceip::{run, IpInfo};
use std::net::TcpListener; use std::sync::{Arc, Mutex};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
let listener = TcpListener::bind("0.0.0.0:8087")?;
let state = Arc::new(Mutex::new(Vec::<IpInfo>::new()));
run(listener, state)?.await
}