mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
Handle port correctly
This commit is contained in:
parent
44bc09b007
commit
27d510d1b7
@ -101,6 +101,7 @@ namespace proxy
|
||||
{
|
||||
case GET4A_COMMAND:
|
||||
if ( *sock_buff != 1 ) {
|
||||
//TODO: we need to support binds and other shit!
|
||||
LogPrint(eLogError,"--- SOCKS4a unsupported command", ((int)*sock_buff));
|
||||
SocksFailed();
|
||||
return 0;
|
||||
@ -194,10 +195,9 @@ namespace proxy
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Pass port see m_port
|
||||
m_parent->GetLocalDestination ()->CreateStream (
|
||||
std::bind (&SOCKS4AHandler::HandleStreamRequestComplete,
|
||||
this, std::placeholders::_1), m_destination);
|
||||
this, std::placeholders::_1), m_destination, m_port);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user