Browse Source

레벨 ACL 버그 수정

https://github.com/openNAMU/openNAMU/issues/2073
잉여개발기 (SPDV) 2 năm trước cách đây
mục cha
commit
aa2130ae8e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -2060,10 +2060,10 @@ def acl_check(name = '', tool = '', topic_num = '1'):
                 elif acl_data[0][0] == 'not_all':
                     return 1
                 elif acl_data[0][0] == 'up_to_level_3':
-                    if level_check(ip)[0] >= 3:
+                    if int(level_check(ip)[0]) >= 3:
                         return 0
                 elif acl_data[0][0] == 'up_to_level_10':
-                    if level_check(ip)[0] >= 10:
+                    if int(level_check(ip)[0]) >= 10:
                         return 0
 
                 return 1