diff --git a/install.sh b/install.sh index bfecda0..0fe6dc2 100755 --- a/install.sh +++ b/install.sh @@ -47,6 +47,9 @@ LOCAL_SPEEDER_HASH=$(sha256sum bin/speederv2_amd64 | awk '{print $1}') VERIFIED_GOST_HASH="5434f730594d29b933087dcaf1ae680bee7077abd021c004f28287deccfe49b5" LOCAL_GOST_HASH=$(sha256sum bin/gost | awk '{print $1}') +VERIFIED_TROJANGO_HASH="cb7db31244ec4213c81cb4ef1080c92b44477a0b1dc101246304846e9d74b640" +LOCAL_TROJANGO_HASH=$(sha256sum bin/trojan-go | awk '{print $1}') + if [ "$LOCAL_TUNNEL_HASH" == "$VERIFIED_TUNNEL_HASH" ] then echo "[OK] udp2raw hash match: $LOCAL_TUNNEL_HASH" @@ -68,6 +71,13 @@ else echo "[WARN] gost hash mismatch: $LOCAL_GOST_HASH. Expected: $VERIFIED_GOST_HASH" fi +if [ "$LOCAL_TROJANGO_HASH" == "$VERIFIED_TROJANGO_HASH" ] +then + echo "[OK] trojan-go hash match: $LOCAL_TROJANGO_HASH" +else + echo "[WARN] trojan-go hash mismatch: $LOCAL_TROJANGO_HASH. Expected: $VERIFIED_TROJANGO_HASH" +fi + podman build . -f DockerfileBase -t wg-ops-base:latest podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest diff --git a/install_cn.sh b/install_cn.sh index 19a4246..5562af1 100755 --- a/install_cn.sh +++ b/install_cn.sh @@ -2,7 +2,7 @@ set -xe sudo apt update -sudo apt install -y curl wireguard python3 +sudo apt install -y curl wireguard python3 unzip . /etc/os-release echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list @@ -23,9 +23,11 @@ cd wg-op-binary openssl enc -aes-256-cbc -pbkdf2 -a -d -in bin.01 -out ../udp2raw_amd64 openssl enc -aes-256-cbc -pbkdf2 -a -d -in bin.02 -out ../speederv2_amd64 openssl enc -aes-256-cbc -pbkdf2 -a -d -in bin.03 -out ../gost +openssl enc -aes-256-cbc -pbkdf2 -a -d -in bin.04 -out ../trojan-go chmod +x ../udp2raw_amd64 chmod +x ../speederv2_amd64 chmod +x ../gost +chmod +x ../trojan-go cd .. rm -rf wg-op-binary @@ -41,6 +43,9 @@ LOCAL_SPEEDER_HASH=$(sha256sum bin/speederv2_amd64 | awk '{print $1}') VERIFIED_GOST_HASH="5434f730594d29b933087dcaf1ae680bee7077abd021c004f28287deccfe49b5" LOCAL_GOST_HASH=$(sha256sum bin/gost | awk '{print $1}') +VERIFIED_TROJANGO_HASH="cb7db31244ec4213c81cb4ef1080c92b44477a0b1dc101246304846e9d74b640" +LOCAL_TROJANGO_HASH=$(sha256sum bin/trojan-go | awk '{print $1}') + if [ "$LOCAL_TUNNEL_HASH" == "$VERIFIED_TUNNEL_HASH" ] then echo "[OK] udp2raw hash match: $LOCAL_TUNNEL_HASH" @@ -62,6 +67,13 @@ else echo "[WARN] gost hash mismatch: $LOCAL_GOST_HASH. Expected: $VERIFIED_GOST_HASH" fi +if [ "$LOCAL_TROJANGO_HASH" == "$VERIFIED_TROJANGO_HASH" ] +then + echo "[OK] trojan-go hash match: $LOCAL_TROJANGO_HASH" +else + echo "[WARN] trojan-go hash mismatch: $LOCAL_TROJANGO_HASH. Expected: $VERIFIED_TROJANGO_HASH" +fi + podman build . -f DockerfileBaseCN -t wg-ops-base:latest podman build . -f DockerfileBuildEnv -t wg-ops-buildenv:latest podman build . -f DockerfileRunEnv -t wg-ops-runenv:latest