vpn otp-only 디버그를 로그인 전 실행
This commit is contained in:
@@ -217,6 +217,12 @@ runs:
|
|||||||
head -10 || true
|
head -10 || true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$DEBUG_OTP_ONLY" = "true" ]; then
|
||||||
|
debug_print_otps
|
||||||
|
echo "debug-otp-only=true 이므로 VPN 로그인 시도 없이 종료합니다."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "F5 웹 로그인 시작: ${VPN_HOST} (user=${VPN_USER})"
|
echo "F5 웹 로그인 시작: ${VPN_HOST} (user=${VPN_USER})"
|
||||||
curl_common -L -c "$COOKIE_JAR" "$VPN_HOST/" -o "$WORKDIR/01-login.html"
|
curl_common -L -c "$COOKIE_JAR" "$VPN_HOST/" -o "$WORKDIR/01-login.html"
|
||||||
|
|
||||||
@@ -232,12 +238,6 @@ runs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DEBUG_OTP_ONLY" = "true" ]; then
|
|
||||||
debug_print_otps
|
|
||||||
echo "debug-otp-only=true 이므로 VPN 로그인 시도 없이 종료합니다."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
host_no_scheme="${VPN_HOST#https://}"
|
host_no_scheme="${VPN_HOST#https://}"
|
||||||
host_no_scheme="${host_no_scheme#http://}"
|
host_no_scheme="${host_no_scheme#http://}"
|
||||||
host_no_scheme="${host_no_scheme%%/*}"
|
host_no_scheme="${host_no_scheme%%/*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user