diff options
author | David Goulet <dgoulet@torproject.org> | 2019-10-17 08:52:21 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-10-17 08:52:21 -0400 |
commit | 78a9158bf00e771dcfc41d7e992692b915f27689 (patch) | |
tree | a05027cb597ebae4ab2d2edf29a2ae38f49d801a /src/core/or/entry_port_cfg_st.h | |
parent | 5c09230b4528ea77138fdb25e0aaf7d9ff90398c (diff) | |
download | tor-78a9158bf00e771dcfc41d7e992692b915f27689.tar.gz tor-78a9158bf00e771dcfc41d7e992692b915f27689.zip |
socks: Add SocksPort flag ExtendedErrors
This new flag tells tor that it can send back the SOCKS5 extended error code
detailed in prop304.
Part of #30382
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/entry_port_cfg_st.h')
-rw-r--r-- | src/core/or/entry_port_cfg_st.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/or/entry_port_cfg_st.h b/src/core/or/entry_port_cfg_st.h index b84838d44f..9ee8676367 100644 --- a/src/core/or/entry_port_cfg_st.h +++ b/src/core/or/entry_port_cfg_st.h @@ -48,6 +48,9 @@ struct entry_port_cfg_t { * do we prefer IPv6? */ unsigned int prefer_ipv6_virtaddr : 1; + /** For socks listeners: can we send back the extended SOCKS5 error code? */ + unsigned int extended_socks5_codes : 1; + }; #endif /* !defined(ENTRY_PORT_CFG_ST_H) */ |