mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
set min MTU if through proxy
This commit is contained in:
parent
eb75eb0e55
commit
0e477bf938
1 changed files with 3 additions and 2 deletions
|
@ -45,7 +45,8 @@ namespace transport
|
||||||
if (m_IsThroughProxy)
|
if (m_IsThroughProxy)
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
break; // we don't need port for proxy
|
i2p::context.SetMTU (SSU2_MIN_PACKET_SIZE, address->IsV4 ());
|
||||||
|
continue; // we don't need port for proxy
|
||||||
}
|
}
|
||||||
auto port = address->port;
|
auto port = address->port;
|
||||||
if (!port)
|
if (!port)
|
||||||
|
@ -90,9 +91,9 @@ namespace transport
|
||||||
}
|
}
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
m_ReceiveService.Start ();
|
|
||||||
if (m_IsThroughProxy)
|
if (m_IsThroughProxy)
|
||||||
ConnectToProxy ();
|
ConnectToProxy ();
|
||||||
|
m_ReceiveService.Start ();
|
||||||
}
|
}
|
||||||
ScheduleTermination ();
|
ScheduleTermination ();
|
||||||
ScheduleResend (false);
|
ScheduleResend (false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue