diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-05-15 11:49:07 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-12 11:40:49 -0400 |
commit | b160929c2274a6a0b6b53a25f3a384369da60865 (patch) | |
tree | 6535420c512f72b9a27c657b027639ccd4e2a9bf /src/trunnel/socks5.trunnel | |
parent | 9155e08450fe7a609f8223202e8aa7dfbca20a6d (diff) | |
download | tor-b160929c2274a6a0b6b53a25f3a384369da60865.tar.gz tor-b160929c2274a6a0b6b53a25f3a384369da60865.zip |
Add RESOLVE (0xF0) command to socks4_client_request
Diffstat (limited to 'src/trunnel/socks5.trunnel')
-rw-r--r-- | src/trunnel/socks5.trunnel | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trunnel/socks5.trunnel b/src/trunnel/socks5.trunnel index ab53a4315f..4818d14087 100644 --- a/src/trunnel/socks5.trunnel +++ b/src/trunnel/socks5.trunnel @@ -16,6 +16,7 @@ const CMD_CONNECT = 1; const CMD_BIND = 2; const CMD_UDP_ASSOCIATE = 3; // This is a tor extension +const CMD_RESOLVE = 0xF0; const CMD_RESOLVE_PTR = 0xF1; const ATYPE_IPV4 = 1; @@ -72,7 +73,7 @@ struct socks5_server_userpath_auth { struct socks4_client_request { u8 version IN [4]; - u8 command IN [CMD_CONNECT,CMD_BIND,CMD_RESOLVE_PTR]; + u8 command IN [CMD_CONNECT,CMD_BIND,CMD_RESOLVE,CMD_RESOLVE_PTR]; u16 port; u32 addr; nulterm username; |