summaryrefslogtreecommitdiff
path: root/src/common/address.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-27 15:31:29 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-27 15:31:29 -0400
commit9c0a1adfa21f12e6682fa26d43fbf91bab4e6fc3 (patch)
tree4854edff8e71379627e00cd23c8e3e0db63abc6e /src/common/address.h
parenta83abcf5ee5cb8fe245bc97e089e082f62921194 (diff)
downloadtor-9c0a1adfa21f12e6682fa26d43fbf91bab4e6fc3.tar.gz
tor-9c0a1adfa21f12e6682fa26d43fbf91bab4e6fc3.zip
Don't do a DNS lookup on a bridge line address
Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha.
Diffstat (limited to 'src/common/address.h')
-rw-r--r--src/common/address.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/address.h b/src/common/address.h
index 77e5855346..7afcb0d925 100644
--- a/src/common/address.h
+++ b/src/common/address.h
@@ -209,7 +209,8 @@ int tor_addr_port_split(int severity, const char *addrport,
char **address_out, uint16_t *port_out);
int tor_addr_port_parse(int severity, const char *addrport,
- tor_addr_t *address_out, uint16_t *port_out);
+ tor_addr_t *address_out, uint16_t *port_out,
+ int default_port);
int tor_addr_hostname_is_local(const char *name);