Commit a9eae9ad authored by Jelle van der Waa's avatar Jelle van der Waa 🚧 Committed by Angel Velásquez
Browse files

FS#50516: mirrors: Extend /mirrors/status/json/ (#91)

Add the ipv4/ipv6 availability to the /mirrors/status/json api.
parent 165cb10f
......@@ -27,6 +27,8 @@ def default(self, obj):
data['country'] = unicode(
data['country_code'] = country.code
data['isos'] = obj.mirror.isos
data['ipv4'] = obj.has_ipv4
data['ipv6'] = obj.has_ipv6
data['details'] = obj.get_full_url()
return data
if isinstance(obj, MirrorProtocol):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment