From 01478630e839c39c4ad67d07e0c4df60c47be7c6 Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 23 Nov 2019 09:37:09 +0300 Subject: [PATCH] no more api/2 Signed-off-by: fbt --- ufw | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ufw b/ufw index 49b920d..11283be 100755 --- a/ufw +++ b/ufw @@ -51,7 +51,6 @@ usage() { cfg_url_regex cfg_tmp_dir cfg_service_url - cfg_api_path EOF } @@ -263,7 +262,7 @@ get_my_ip() { login() { declare api_response - api_response=$( curl -sl "$cfg_service_url/$cfg_api_path/get_login_token?login=$login&format=json" ) + api_response=$( curl -sl "$cfg_service_url/token_request.json?login=$login" ) if get_api_status <<< "$api_response"; then printf 'Check your email.\n' @@ -325,7 +324,6 @@ main() { cfg_service_url='https://8fw.me' cfg_screenshot_ext='png' cfg_max_filesize='200M' - cfg_api_path='/api/2' flag_shortlink=0 flag_directlink=1