2020-10-30 23:02:57 +00:00
|
|
|
use std::error::Error;
|
2020-10-30 22:53:03 +00:00
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main () -> Result <(), Box <dyn Error>> {
|
2020-10-30 23:36:32 +00:00
|
|
|
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 (),
|
2020-10-30 23:36:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ptth::server::main (opt).await
|
2020-10-30 22:53:03 +00:00
|
|
|
}
|