aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:07 +0000
committerpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>1984-04-04 00:44:07 +0000
commit62f74309bfa0b763a4130f8c9a75f81c6dbd274a (patch)
tree2fb8bb1d0019d3783da216328d226b3e17f27207
parent0e47c51575652753615dc508fcd81dc710c6af33 (diff)
downloadyoubroketheinternet-overlay-62f74309bfa0b763a4130f8c9a75f81c6dbd274a.tar.gz
youbroketheinternet-overlay-62f74309bfa0b763a4130f8c9a75f81c6dbd274a.zip
git-r3.eclass: correct the newly introduced MITM warning
-rw-r--r--eclass/git-r3.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
index 5e4f57e..4828509 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -578,10 +578,14 @@ git-r3_fetch() {
578 local r 578 local r
579 for r in "${repos[@]}"; do 579 for r in "${repos[@]}"; do
580 if [[ ${r} == git:* || ${r} == http:* ]]; then 580 if [[ ${r} == git:* || ${r} == http:* ]]; then
581 ewarn "git-r3: ${r%%:*} protocol is completely unsecure and may render the ebuild" 581 if [[ ${r} == *://*.onion/* ]]; then
582 ewarn "easily susceptible to MITM attacks (even if used only as fallback). Please" 582 einfo "Cool, you are using an extra secure Tor repository."
583 ewarn "use https instead." 583 else
584 ewarn "[URI: ${r}]" 584 ewarn "git-r3: ${r%%:*} protocol is completely unsecure and may render the ebuild"
585 ewarn "easily susceptible to MITM attacks (even if used only as fallback). Please"
586 ewarn "use https instead."
587 ewarn "[URI: ${r}]"
588 fi
585 fi 589 fi
586 done 590 done
587 591