|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|