Merge pull request #2 from wling-art/patch-1

修复无法使用反向ws
This commit is contained in:
风宝宝 2024-04-14 00:42:23 +08:00 committed by GitHub
commit 5b739fd3a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ if [ ! -f "$CONFIG_PATH" ]; then
sed -i "s/WSR_ENABLE/false/" $CONFIG_PATH
fi
if [ "WS_URLS" ]; then
if [ "$WS_URLS" ]; then
sed -i "s/WS_URLS/$WS_URLS/" $CONFIG_PATH
else
sed -i "s/\"WS_URLS\"/\"\"/" $CONFIG_PATH
@ -94,4 +94,4 @@ if [ ! -f "$CONFIG_PATH" ]; then
fi
bash /root/napcat.sh -q $ACCOUNT &
exec supervisord
exec supervisord