feat: add self-built Snell 5.0.1 projects

This commit is contained in:
Codex
2026-07-19 08:55:46 -07:00
parent 469dcc3641
commit b90436ea6c
10 changed files with 132 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu
: "${PSK:?PSK is required}"
: "${PORT:?PORT is required}"
case "$PORT" in
*[!0-9]*|'') echo "PORT must be numeric" >&2; exit 1 ;;
esac
umask 077
cat > /tmp/snell-server.conf <<EOF
[snell-server]
listen = :::${PORT}
psk = ${PSK}
EOF
exec /usr/local/bin/snell-server -c /tmp/snell-server.conf