diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-29 14:51:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-29 14:51:59 -0500 |
commit | 4c1a77953942f4921f8a151e01933c8f9d104e7f (patch) | |
tree | bb400c1dc0e9f420026b10d6d82a4e2693bcc3fa /src/or/config.c | |
parent | 204374f7d92997a510a7aabe5ec57f0f87a3499f (diff) | |
download | tor-4c1a77953942f4921f8a151e01933c8f9d104e7f.tar.gz tor-4c1a77953942f4921f8a151e01933c8f9d104e7f.zip |
Restrict unix: addresses to control and socks for now
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index ab1f318690..05b4d14337 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5862,6 +5862,12 @@ parse_port_config(smartlist_t *out, goto err; } + if (unix_socket_path && + ! conn_listener_type_supports_af_unix(listener_type)) { + log_warn(LD_CONFIG, "%sPort does not support unix sockets", portname); + goto err; + } + if (unix_socket_path) { port = 1; } else if (is_unix_socket) { |