Commit 538b2524 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Merge remote-tracking branch 'dgoulet/ticket33235_045_01'

parents f152d5b1 b14b1f2b
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -193,6 +193,10 @@ get_address_from_config(const or_options_t *options, int warn_severity,
      explicit_ip = true;
      num_valid_addr++;
      continue;
    } else if (af != -1) {
      /* Parsable address but just not the one from the family we want. Skip
       * it so we don't attempt a resolve. */
      continue;
    }

    /* Not an IP address. Considering this value a hostname and attempting to
@@ -208,7 +212,7 @@ get_address_from_config(const or_options_t *options, int warn_severity,
      /* Hostname that can't be resolved, this is a fatal error. */
      log_fn(warn_severity, LD_CONFIG,
             "Could not resolve local Address '%s'. Failing.", cfg->value);
      return FN_RET_BAIL;
      continue;
    }
  }

@@ -216,8 +220,10 @@ get_address_from_config(const or_options_t *options, int warn_severity,
    log_fn(warn_severity, LD_CONFIG,
           "No Address option found for family %s in configuration.",
           fmt_af_family(family));
    /* No Address statement for family, inform caller to try next method. */
    return FN_RET_NEXT;
    /* No Address statement for family but one exists since Address is not
     * NULL thus we have to stop now and not attempt to send back a guessed
     * address. */
    return FN_RET_BAIL;
  }

  if (num_valid_addr >= MAX_CONFIG_ADDRESS) {
+620 −2

File changed.

Preview size limit exceeded, changes collapsed.