updated server configs

This commit is contained in:
Luxferre
2026-07-26 10:13:48 +03:00
parent 8956f8fd19
commit fb5cbc7917
2 changed files with 28 additions and 6 deletions
+4 -5
View File
@@ -2,19 +2,18 @@
# Client-side GS-Warp launcher
# Created by Luxferre in 2026, released into the public domain
[ -z "$OVPNCFG" ] && OVPNCFG="$2"
[ -z "$OVPNCFG" ] && OVPNCFG="$1"
[ -z "$OVPNCFG" ] && OVPNCFG="client.ovpn"
printf "Using config from %s...\n" "$OVPNCFG"
GS_SECRET="$(md5sum "$OVPNCFG" | cut -d ' ' -f 1)"
GSPIDFILE='/tmp/gswarp-gs.pid'
OVPIDFILE='/tmp/gswarp-ov.pid'
BEFORE_PIDS=$(pgrep -x gs-netcat 2>/dev/null)
gs-netcat -D -s "$GS_SECRET" -p 1194
sleep 0.5
gs-netcat -D -p 1194 -s $(md5sum "$OVPNCFG" | cut -d ' ' -f 1)
sleep 2
AFTER_PIDS=$(pgrep -x gs-netcat 2>/dev/null)
if [ -n "$BEFORE_PIDS" ]; then