fix listener stop accept after failure

This commit is contained in:
sijie.sun
2024-08-03 12:40:08 +08:00
committed by Sijie.Sun
parent d5bc15cf7a
commit 4a0adaa3f8
3 changed files with 23 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ and the vpn client is in network of 10.14.14.0/24"
#[arg(
long,
help = "path to the log file, if not set, will print to stdout",
help = "latency first mode, will try to relay traffic with lowest latency path, default is using shortest path",
default_value = "false"
)]
latency_first: bool,
@@ -528,6 +528,13 @@ pub async fn async_main(cli: Cli) {
));
}
GlobalCtxEvent::ListenerAcceptFailed(p, msg) => {
print_event(format!(
"listener accept failed. listener: {}, msg: {}",
p, msg
));
}
GlobalCtxEvent::ListenerAdded(p) => {
if p.scheme() == "ring" {
continue;