Commit 4180f23f authored by nanamicat's avatar nanamicat

tcp

parent 882d94e3
Pipeline #41961 passed with stages
in 2 minutes and 15 seconds
......@@ -96,6 +96,7 @@ impl Router {
// listener
let result = Socket::new(self.config.family, Type::STREAM, Some(Protocol::TCP))?;
let addr = Router::bind_addr(&self.config);
result.set_reuse_address(true)?;
result.bind(&addr)?;
result.listen(100)?;
Ok(result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment