Skip to content

Commit 3fe42a1

Browse files
committed
Permit access to all mirrors if the list of allowed mirrors is empty
1 parent 06b2eea commit 3fe42a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,10 @@ enum CacheFileStat<'a> {
14901490
}
14911491

14921492
fn is_host_allowed(requested_host: &str) -> bool {
1493+
if global_config().allowed_mirrors.is_empty() {
1494+
return true;
1495+
}
1496+
14931497
global_config()
14941498
.allowed_mirrors
14951499
.iter()

0 commit comments

Comments
 (0)