From 257a06a5d175e64407787fee7b691c778dcc751c Mon Sep 17 00:00:00 2001 From: songbo Date: Sat, 24 Jan 2015 16:40:53 +0800 Subject: [PATCH] update logout() function to meet current website configuration. Previous version can not logout successfully. --- lib/wlan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wlan.sh b/lib/wlan.sh index 573aed7..2c25c27 100755 --- a/lib/wlan.sh +++ b/lib/wlan.sh @@ -33,7 +33,7 @@ logout() { PASSWORD=$2 echo "Logout: ${USERNAME}" - RESPONSE=$(curl "https://net.zju.edu.cn/cgi-bin/srun_portal" -H "Content-Type: application/x-www-form-urlencoded" -d "action=logout" -s) + RESPONSE=$(curl "https://net.zju.edu.cn/rad_online.php" -H "Content-Type: application/x-www-form-urlencoded" -d "action=auto_dm&username=${USERNAME}&password=${PASSWORD}" -s) case "${RESPONSE}" in *ok*)