Skip to content

Commit ca2c597

Browse files
committed
fix: 修复账号密码包含特殊符号登录验证异常
1 parent d0c0a73 commit ca2c597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/openvpn-auth

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
log_prefix="[OPENVPN-AUTH] $(date '+%Y-%m-%d %H:%M:%S.%3N')"
44

55

6-
if ! resp=$(curl -w "\n%{http_code}" --connect-timeout 5 -s -X POST "$ovpn_auth_api" -d "username=$username" -d "password=$password"); then
6+
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
77
echo "$log_prefix [$username] 请求登录接口失败"
88
exit 1
99
fi

0 commit comments

Comments
 (0)