diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-05 14:50:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-05 14:50:57 -0400 |
commit | 2ff664ee20836ecd7b9e3e9a368766b4125f21a8 (patch) | |
tree | 133a7545437891761e64c4df8f3ae8d9980ac9a6 /src/or | |
parent | d290e36576c07b288a6347385d144a493869bd97 (diff) | |
parent | b3469e4207d12821993f1d2d381c5d27918a4c01 (diff) | |
download | tor-2ff664ee20836ecd7b9e3e9a368766b4125f21a8.tar.gz tor-2ff664ee20836ecd7b9e3e9a368766b4125f21a8.zip |
Merge remote-tracking branch 'public/bug10801_024'
Conflicts:
src/common/address.c
src/or/config.c
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/or/config.c b/src/or/config.c index 4a6b30172c..dbf643c53a 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4535,18 +4535,11 @@ parse_bridge_line(const char *line) addrport = field; } - /* Parse addrport. */ - if (tor_addr_port_lookup(addrport, - &bridge_line->addr, &bridge_line->port)<0) { + if (tor_addr_port_parse(LOG_INFO, addrport, + &bridge_line->addr, &bridge_line->port, 443)<0) { log_warn(LD_CONFIG, "Error parsing Bridge address '%s'", addrport); goto err; } - if (!bridge_line->port) { - log_info(LD_CONFIG, - "Bridge address '%s' has no port; using default port 443.", - addrport); - bridge_line->port = 443; - } /* If transports are enabled, next field could be a fingerprint or a socks argument. If transports are disabled, next field must be @@ -4797,7 +4790,7 @@ get_bindaddr_from_transport_listen_line(const char *line,const char *transport) goto err; /* Validate addrport */ - if (tor_addr_port_parse(LOG_WARN, addrport, &addr, &port)<0) { + if (tor_addr_port_parse(LOG_WARN, addrport, &addr, &port, -1)<0) { log_warn(LD_CONFIG, "Error parsing ServerTransportListenAddr " "address '%s'", addrport); goto err; |