Преглед изворни кода

bugfix: fixed update dhcp time for refresh lease

Roman Dmitriev пре 2 година
родитељ
комит
27c321cf7e
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      scripts/dhcp-log.pl

+ 4 - 4
scripts/dhcp-log.pl

@@ -334,10 +334,6 @@ if (!$pid) {
                 update_record($hdb,'User_auth',$auth_rec,"id=$auth_id");
                 }
 
-            if ($dhcp_record->{hotspot} and $ignore_hotspot_dhcp_log) { next; }
-
-            if ($ignore_update_dhcp_event and $type=~/old/i) { next; }
-
             if ($type=~/old/i) {
                     my $auth_rec;
                     $auth_rec->{dhcp_action}=$type;
@@ -365,6 +361,10 @@ if (!$pid) {
                     }
                 }
 
+            if ($dhcp_record->{hotspot} and $ignore_hotspot_dhcp_log) { next; }
+
+            if ($ignore_update_dhcp_event and $type=~/old/i) { next; }
+
             my $dhcp_log;
             if (!$auth_id) { $auth_id=0; }
             $dhcp_log->{'auth_id'} = $auth_id;