mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
make check-spaces
This commit is contained in:
+3
-2
@@ -2124,8 +2124,9 @@ launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge)
|
||||
* it. If we */
|
||||
if (!fascist_firewall_allows_address_addr(&bridge->addr, bridge->port,
|
||||
FIREWALL_OR_CONNECTION, 0)) {
|
||||
log_notice(LD_CONFIG, "Tried to fetch a descriptor directly from a bridge, "
|
||||
"but that bridge is not reachable through our firewall.");
|
||||
log_notice(LD_CONFIG, "Tried to fetch a descriptor directly from a "
|
||||
"bridge, but that bridge is not reachable through our "
|
||||
"firewall.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -4092,8 +4092,8 @@ typedef struct {
|
||||
int ClientUseIPv6;
|
||||
/** If true, prefer an IPv6 OR port over an IPv4 one for entry node
|
||||
* connections. If auto, bridge clients prefer IPv6, and other clients
|
||||
* prefer IPv4. Use fascist_firewall_prefer_ipv6_orport() instead of accessing
|
||||
* this value directly. */
|
||||
* prefer IPv4. Use fascist_firewall_prefer_ipv6_orport() instead of
|
||||
* accessing this value directly. */
|
||||
int ClientPreferIPv6ORPort;
|
||||
/** If true, prefer an IPv6 directory port over an IPv4 one for direct
|
||||
* directory connections. If auto, bridge clients prefer IPv6, and other
|
||||
|
||||
+8
-7
@@ -421,7 +421,8 @@ fascist_firewall_allows_address(const tor_addr_t *addr,
|
||||
|
||||
/** Is this client configured to use IPv6?
|
||||
*/
|
||||
int fascist_firewall_use_ipv6(const or_options_t *options)
|
||||
int
|
||||
fascist_firewall_use_ipv6(const or_options_t *options)
|
||||
{
|
||||
/* Clients use IPv6 if it's set, or they use bridges, or they don't use
|
||||
* IPv4 */
|
||||
@@ -513,14 +514,14 @@ fascist_firewall_allows_address_addr(const tor_addr_t *addr, uint16_t port,
|
||||
|
||||
if (fw_connection == FIREWALL_OR_CONNECTION) {
|
||||
return fascist_firewall_allows_address(addr, port,
|
||||
reachable_or_addr_policy,
|
||||
pref_only,
|
||||
fascist_firewall_prefer_ipv6_orport(options));
|
||||
reachable_or_addr_policy,
|
||||
pref_only,
|
||||
fascist_firewall_prefer_ipv6_orport(options));
|
||||
} else if (fw_connection == FIREWALL_DIR_CONNECTION) {
|
||||
return fascist_firewall_allows_address(addr, port,
|
||||
reachable_dir_addr_policy,
|
||||
pref_only,
|
||||
fascist_firewall_prefer_ipv6_dirport(options));
|
||||
reachable_dir_addr_policy,
|
||||
pref_only,
|
||||
fascist_firewall_prefer_ipv6_dirport(options));
|
||||
} else {
|
||||
log_warn(LD_BUG, "Bad firewall_connection_t value %d.",
|
||||
fw_connection);
|
||||
|
||||
@@ -1546,7 +1546,6 @@ test_policies_fascist_firewall_choose_address(void *arg)
|
||||
FIREWALL_DIR_CONNECTION, 1)
|
||||
== &ipv6_dir_ap);
|
||||
|
||||
|
||||
/* In the default configuration (Auto / IPv6 off), bridge clients should
|
||||
* still use IPv6, and only prefer it for bridges configured with an IPv6
|
||||
* address, regardless of ClientUseIPv6. */
|
||||
|
||||
Reference in New Issue
Block a user