prototyping forward request

This commit is contained in:
open-trade
2020-09-17 10:02:20 +08:00
parent b32a948347
commit 1d19007a46
4 changed files with 37 additions and 8 deletions

View File

@@ -1,12 +1,12 @@
// https://tools.ietf.org/rfc/rfc5128.txt
// https://blog.csdn.net/bytxl/article/details/44344855
use hbb_common::{env_logger, log, tokio, ResultType};
use hbb_common::{env_logger::*, log, tokio, ResultType};
use hbbs::*;
#[tokio::main]
async fn main() -> ResultType<()> {
env_logger::init();
init_from_env(Env::default().filter_or(DEFAULT_FILTER_ENV, "info"));
let addr = "0.0.0.0:21116";
log::info!("Listening on {}", addr);
RendezvousServer::start(&addr).await?;