diff options
| author | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-02-28 22:54:29 +0300 |
|---|---|---|
| committer | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-02-28 22:54:29 +0300 |
| commit | 5317df21f3923bfa771ed6008d5b0f5f8911e498 (patch) | |
| tree | 3109ee9abe5bf8cf24eef806f033c6d0e5dd160f /web/web.go | |
| parent | 1a4ba4afd64531c466e5e4a0af7b45bcb3247339 (diff) | |
ip limit + export links
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -310,6 +310,9 @@ func (s *Server) startTask() { // Check the inbound traffic every 30 seconds that the traffic exceeds and expires s.cron.AddJob("@every 30s", job.NewCheckInboundJob()) + // check client ips from log file every 10 sec + s.cron.AddJob("@every 10s", job.NewCheckClientIpJob()) + // Make a traffic condition every day, 8:30 var entry cron.EntryID isTgbotenabled, err := s.settingService.GetTgbotenabled() |
