function Timer1s() local t = hc.get_users_stat('#all') local trafic_local = t['local'].from_internet - (hc.get_global('_local_') or 0) if trafic_local>0 then if t['Idle'].speed_limit==0 then hc.set_user_speed('Idle', 2048) end elseif t['Idle'].speed_limit~=0 then hc.set_user_speed('Idle', 0) end hc.set_global('_local_', t['local'].from_internet)end
--[[ <HCExtension>@name Меняет заголовок ответа@description Изменяет заголовок ответа по заданным правилам@rule ^http://https\.\.@event BeforeAnswerHeaderSend/Answer</HCExtension> ]]function Answer() hc.answer_header = re.replace(hc.answer_header, [[https\.\.]], '') hc.monitor_string = hc.monitor_string..'A-CH 'end