Browse Source

Handle port correctly

pull/132/head
Francisco Blas (klondike) Izquierdo Riera 10 years ago
parent
commit
27d510d1b7
  1. 4
      SOCKS.cpp

4
SOCKS.cpp

@ -101,6 +101,7 @@ namespace proxy
{ {
case GET4A_COMMAND: case GET4A_COMMAND:
if ( *sock_buff != 1 ) { if ( *sock_buff != 1 ) {
//TODO: we need to support binds and other shit!
LogPrint(eLogError,"--- SOCKS4a unsupported command", ((int)*sock_buff)); LogPrint(eLogError,"--- SOCKS4a unsupported command", ((int)*sock_buff));
SocksFailed(); SocksFailed();
return 0; return 0;
@ -194,10 +195,9 @@ namespace proxy
return; return;
} }
// TODO: Pass port see m_port
m_parent->GetLocalDestination ()->CreateStream ( m_parent->GetLocalDestination ()->CreateStream (
std::bind (&SOCKS4AHandler::HandleStreamRequestComplete, std::bind (&SOCKS4AHandler::HandleStreamRequestComplete,
this, std::placeholders::_1), m_destination); this, std::placeholders::_1), m_destination, m_port);
} }
} }

Loading…
Cancel
Save