Pārlūkot izejas kodu

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

Helge Jung 10 gadi atpakaļ
vecāks
revīzija
b4aed3ec28
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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