This commit is contained in:
Jeff Becker 2016-08-21 15:33:19 -04:00
parent aa3723d2bd
commit e8f9ecc7d9
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
3 changed files with 12 additions and 6 deletions

View file

@ -404,6 +404,9 @@ namespace client
if(destinationPort == 0) {
destinationPort = port;
}
if (!localDestination) {
localDestination = m_SharedLocalDestination;
}
auto clientTunnel = new I2PUDPClientTunnel(name, dest, end, localDestination, destinationPort, m_Service);
if(m_ClientForwards.insert(std::make_pair(end, std::unique_ptr<I2PUDPClientTunnel>(clientTunnel))).second) {
clientTunnel->Start();
@ -411,6 +414,7 @@ namespace client
LogPrint(eLogError, "Clients: I2P Client forward for endpoint ", end, " already exists");
delete clientTunnel;
}
} else {
// tcp client
auto clientTunnel = new I2PClientTunnel (name, dest, address, port, localDestination, destinationPort);