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*)