소스 검색

small fix

root 1 년 전
부모
커밋
01acd32c68
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/eyelib/database.pm

+ 1 - 1
scripts/eyelib/database.pm

@@ -836,7 +836,7 @@ if (defined $hostname and $hostname) {
 if (defined $ip and $ip) {
     my $users = new Net::Patricia;
     #check ip rules
-    @ip_rules = get_records_sql($db,'SELECT * FROM auth_rules WHERE type=1 and LENGTH(rule)>0 AND ou_id IS NOT NULL');
+    my @ip_rules = get_records_sql($db,'SELECT * FROM auth_rules WHERE type=1 and LENGTH(rule)>0 AND ou_id IS NOT NULL');
     foreach my $row (@ip_rules) { eval { $users->add_string($row->{rule},$row->{ou_id}); }; }
     if ($users->match_string($ip)) { $result->{ou_id}=$users->match_string($ip); return $result; }
     }