fix: rename --no-auth-read to --no-auth-access

This commit is contained in:
sigoden
2022-06-03 06:51:03 +08:00
parent 0a3d9c391f
commit 7c2449cb1a
2 changed files with 9 additions and 9 deletions

View File

@@ -501,7 +501,7 @@ impl InnerService {
.unwrap_or_default(),
_ => false,
},
None => !self.args.auth_access && req.method() == Method::GET,
None => self.args.no_auth_access && req.method() == Method::GET,
},
}
};
@@ -733,8 +733,8 @@ fn print_listening(address: &str, port: u16, tls: bool) {
for addr in addrs {
eprintln!(" {}://{}:{}", protocol, addr, port);
}
eprintln!();
}
eprintln!();
}
fn retrive_listening_addrs(address: &str) -> Vec<String> {