mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
send actual router limits in BandwidthLimitsMessage
This commit is contained in:
parent
3a4833aa67
commit
ea19d2296c
1 changed files with 2 additions and 2 deletions
|
@ -1003,8 +1003,8 @@ namespace client
|
||||||
{
|
{
|
||||||
uint8_t limits[64];
|
uint8_t limits[64];
|
||||||
memset (limits, 0, 64);
|
memset (limits, 0, 64);
|
||||||
htobe32buf (limits, i2p::transport::transports.GetInBandwidth ()); // inbound
|
htobe32buf (limits, i2p::context.GetBandwidthLimit ()); // inbound
|
||||||
htobe32buf (limits + 4, i2p::transport::transports.GetOutBandwidth ()); // outbound
|
htobe32buf (limits + 4, i2p::context.GetBandwidthLimit ()); // outbound
|
||||||
SendI2CPMessage (I2CP_BANDWIDTH_LIMITS_MESSAGE, limits, 64);
|
SendI2CPMessage (I2CP_BANDWIDTH_LIMITS_MESSAGE, limits, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue