ptth/src/bin/server.rs

12 lines
249 B
Rust
Raw Normal View History

use std::error::Error;
#[tokio::main]
async fn main () -> Result <(), Box <dyn Error>> {
let opt = ptth::server::Opt {
2020-10-30 23:48:44 +00:00
relay_url: "http://127.0.0.1:4000".into (),
file_server_root: "/home/user".into (),
};
ptth::server::main (opt).await
}