mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Add braces around a two-line code block.
This commit is contained in:
parent
4aca55efd2
commit
218193d38d
@ -270,9 +270,10 @@ int
|
|||||||
geoip_get_country_by_addr(const tor_addr_t *addr)
|
geoip_get_country_by_addr(const tor_addr_t *addr)
|
||||||
{
|
{
|
||||||
uint32_t ipaddr;
|
uint32_t ipaddr;
|
||||||
if (tor_addr_family(addr) != AF_INET)
|
if (tor_addr_family(addr) != AF_INET) {
|
||||||
/*XXXX IP6 support ipv6 geoip.*/
|
/*XXXX IP6 support ipv6 geoip.*/
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
ipaddr = tor_addr_to_ipv4h(addr);
|
ipaddr = tor_addr_to_ipv4h(addr);
|
||||||
return geoip_get_country_by_ip(ipaddr);
|
return geoip_get_country_by_ip(ipaddr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user