Explorar o código

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

Helge Jung %!s(int64=10) %!d(string=hai) anos
pai
achega
b4aed3ec28
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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