diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index a5b50dcf7..b418877d9 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -2037,7 +2037,7 @@ function wafLogs(){ wafLogRequest(1); }); - owPost('get_default_site',{},function(rdata){ + owPostN('get_default_site',{},function(rdata){ $('select[name="site"]').html(''); var rdata = $.parseJSON(rdata.data); diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index 8f5b509e4..624bb7ac1 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -606,6 +606,10 @@ end local function area_limit(overall_country, server_name, status) + if not status then + return false + end + if overall_country and overall_country~="" and C:count_size(waf_area_limit)>=1 then for k, val in pairs(waf_area_limit) do -- C:D(tostring(k)..':'..tostring(val['site']['allsite']) ..':'.. tostring(val['site']['allsite'] == '1') ..':'.. tostring(val['site']['allsite']))