[add] cap on yggdrasil peers from one country

This commit is contained in:
oldnick85
2023-10-31 20:28:41 +03:00
parent ab7ea7423b
commit 3fe30aa6dd
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ RUN git config --global advice.detachedHead false
RUN git clone --depth 1 --branch v0 https://github.com/oldnick85/yggdrasil_get_keys.git /UTILS/yggdrasil_get_keys
RUN python3 -m pip install --break-system-packages -r /UTILS/yggdrasil_get_keys/requirements.txt
# script to find yggdrasil public peers
RUN git clone --depth 1 --branch v3 https://github.com/oldnick85/yggdrasil_find_public_peers.git /UTILS/yggdrasil_find_public_peers
RUN git clone --depth 1 --branch v4 https://github.com/oldnick85/yggdrasil_find_public_peers.git /UTILS/yggdrasil_find_public_peers
RUN python3 -m pip install --break-system-packages -r /UTILS/yggdrasil_find_public_peers/requirements.txt
# save peers to use in case of unavailable repository
RUN python3 /UTILS/yggdrasil_find_public_peers/yggdrasil_find_public_peers.py \
+2 -1
View File
@@ -11,7 +11,8 @@ python3 /UTILS/yggdrasil_find_public_peers/yggdrasil_find_public_peers.py \
--yggdrasil-peers-json="/UTILS/yggdrasil_find_public_peers/public_peers.json" \
--parallel=4 \
--pings=10 \
--best=5 \
--best=6 \
--max-from-country=2 \
--ping-interval=0.5
sysctl net.ipv6.conf.all.disable_ipv6=0 || true
# start YGGDRASIL