瀏覽代碼

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;