Some checks failed
Build three ZaStoGram APKs / build (arm64-v8a, ZaStoGram-standalone-arm64-v8a, Arm64, arm64) (push) Failing after 47s
Build three ZaStoGram APKs / build (armeabi-v7a, ZaStoGram-standalone-armeabi-v7a, Armv7, armv7) (push) Failing after 53s
ZaStoGram source guards / guards (push) Failing after 17s
Build three ZaStoGram APKs / build (x86, ZaStoGram-standalone-x86, X86, x86) (push) Failing after 48s
Every front put kwsN.<zone> into the clear-text SNI, one pattern a network can match to cut all of them at once. The zone is now the SNI and kwsN.<zone> travels only in the encrypted Host header (101 on 40/40 front x DC2/DC4). - A plain ws:// step (port 80) follows the TLS fronts, with its own health record (cdn-plain-kwsN); a pooled spare stays on its step. - The front catalog is refreshed from the tg-ws-proxy list (GitHub, jsDelivr mirror) by WssFrontsUpdater at most daily into wss_fronts.txt; native validates it as a whole and a front without a baked address is dialled by name. - naive-core pinned to 1f9bbfd (sni and plain fields); host tests cover TLS, plain and the catalog; guards updated for the new DC203 chain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
1,016 B
Shell
Executable file
16 lines
1,016 B
Shell
Executable file
#!/bin/bash
|
|
# Builds the host test of the real WssSocket.cpp (stub logger + lab trust root). Usage: build_wss_host_test.sh OUTPUT
|
|
# WSS_TEST_SRC=other.cpp builds a different test against the same WssSocket.cpp.
|
|
# Needs a built naive-core (libzsgnaive.so) in $NAIVE_CORE (default ~/zastogram/naive-core).
|
|
set -e
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
WSS=$HERE/../../tgnet/wss
|
|
CORE=${NAIVE_CORE:-$HOME/zastogram/naive-core}
|
|
T=$(mktemp -d)
|
|
cp $WSS/WssSocket.cpp $WSS/WssSocket.h $T/
|
|
cp -r $WSS/../transport $T/transport
|
|
sed -i 's#"../FileLog.h"#"host_stubs/FileLog.h"#; s#"../../zsg_naive/TrustRoots.h"#"host_stubs/TrustRoots.h"#; s#"../transport/TransportSocket.h"#"transport/TransportSocket.h"#' $T/WssSocket.cpp $T/WssSocket.h
|
|
cp -r $HERE/host_stubs $T/host_stubs
|
|
g++ -std=c++17 -Wall -DNETWORK_TYPE_WIFI=1 -I$T/host_stubs/include -I$T -I$CORE/include $T/WssSocket.cpp $T/host_stubs/TrustRoots.cpp ${WSS_TEST_SRC:-$HERE/wss_socket_host_test.cpp} \
|
|
-L$CORE/build -lzsgnaive -Wl,-rpath,$CORE/build -o "$1"
|
|
rm -rf $T
|