From 3fe30aa6dd1e8582c68eb634d8f4e0f942333ae6 Mon Sep 17 00:00:00 2001 From: oldnick85 Date: Tue, 31 Oct 2023 20:28:41 +0300 Subject: [PATCH] [add] cap on yggdrasil peers from one country --- Dockerfile | 2 +- entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6441348..f7605d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/entrypoint.sh b/entrypoint.sh index a35ee16..ab79939 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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