Commit 68494e8d authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame Committed by Richard Pospesel
Browse files

fixup! Bug 14939: Support IPv6 addresses in Tor Circuit Display

Use if (...length > 0) instead of if (...length)
parent bf12640c
......@@ -109,7 +109,7 @@ let nodeDataForID = async function (controller, id) {
result.bridgeType = "";
}
}
if (result.ipAddrs.length) {
if (result.ipAddrs.length > 0) {
// Get the country code for the node's IP address.
try {
const countryCode = await controller.getInfo("ip-to-country/" + result.ipAddrs[0]);
......
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