Parcourir la source

/providers: show all netblocks, not only the one of the last entry

Helge Jung il y a 10 ans
Parent
commit
b4aed3ec28
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      ffstatus/server.py

+ 1 - 1
ffstatus/server.py

@@ -455,6 +455,7 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
 		outputformat = query['format'].lower() if 'format' in query else 'html'
 
 		isps = {}
+		ispblocks = {}
 		vpnstorage_updated = False
 		vpnstorage_update_allowed = 'update' in query and query['update'] == 'allowed'
 		for key in vpn:
@@ -484,7 +485,6 @@ class BatcaveHttpRequestHandler(BaseHTTPRequestHandler):
 				continue
 
 			item_isps = set()
-			ispblocks = {}
 			for ip in ips:
 				isp = "UNKNOWN"
 				ispblock = ip