We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0c0a73 commit ca2c597Copy full SHA for ca2c597
build/openvpn-auth
@@ -3,7 +3,7 @@
3
log_prefix="[OPENVPN-AUTH] $(date '+%Y-%m-%d %H:%M:%S.%3N')"
4
5
6
-if ! resp=$(curl -w "\n%{http_code}" --connect-timeout 5 -s -X POST "$ovpn_auth_api" -d "username=$username" -d "password=$password"); then
+if ! resp=$(curl -w "\n%{http_code}" --connect-timeout 5 -s -X POST "$ovpn_auth_api" --data-urlencode "username=$username" --data-urlencode "password=$password"); then
7
echo "$log_prefix [$username] 请求登录接口失败"
8
exit 1
9
fi
0 commit comments