🍉 Sync 2026-08-25 06:20:24

This commit is contained in:
github-actions[bot] committed 2026-08-25 06:20:24 +08:00
1 parent cd10313b93
commit 7c5465530b
13 files changed
+2302 -73

No files matched your search

Executable
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
# frpc/frps both accept "verify -c <file>" to validate a config without
# connecting, which exercises the TOML config loader end-to-end.
case "$1" in
frpc)
conf="/tmp/frpc.$$.toml"
printf 'serverAddr = "127.0.0.1"\nserverPort = 7000\n' > "$conf"
frpc verify -c "$conf" || { echo "FAIL: frpc rejected a valid config"; rm -f "$conf"; exit 1; }
rm -f "$conf"
;;
frps)
conf="/tmp/frps.$$.toml"
printf 'bindPort = 7000\n' > "$conf"
frps verify -c "$conf" || { echo "FAIL: frps rejected a valid config"; rm -f "$conf"; exit 1; }
rm -f "$conf"
;;
*)
exit 0
;;
esac