Kaynağa Gözat

fix ip_pas bug

잉여개발기 (SPDV) 3 yıl önce
ebeveyn
işleme
287edcf01f
2 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 7 7
      route/tool/func.py
  2. 1 1
      version.json

+ 7 - 7
route/tool/func.py

@@ -1848,17 +1848,17 @@ def ip_pas(raw_ip, type_data = 0):
     
     get_ip = list(set(get_ip))
     
-    for raw_ip in get_ip:        
+    for raw_ip in get_ip:
         change_ip = 0
         is_this_ip = ip_or_user(raw_ip)
         if is_this_ip != 0 and ip_view != '':
-            raw_ip = ipaddress.ip_address(raw_ip)
-            if type(raw_ip) == ipaddress.IPv6Address:
-                raw_ip = raw_ip.exploded
-                ip = re.sub(r':([^:]*):([^:]*)$', ':*:*', raw_ip)
+            ip = ipaddress.ip_address(raw_ip)
+            if type(ip) == ipaddress.IPv6Address:
+                ip = ip.exploded
+                ip = re.sub(r':([^:]*):([^:]*)$', ':*:*', ip)
             else:
-                raw_ip = raw_ip.exploded
-                ip = re.sub(r'\.([^.]*)\.([^.]*)$', '.*.*', raw_ip)
+                ip = ip.exploded
+                ip = re.sub(r'\.([^.]*)\.([^.]*)$', '.*.*', ip)
                 
             change_ip = 1
         else:     

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.5-unstable (stable2) (beta6-87)",
+        "r_ver" : "v3.4.5-unstable (stable2) (beta6-88)",
         "c_ver" : "3500354",
         "s_ver" : "3500111"
     }