mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
start/stop accepting transit tunnels
This commit is contained in:
@@ -297,7 +297,7 @@ namespace i2p
|
||||
i2p::tunnel::tunnels.AddTransitTunnel (transitTunnel);
|
||||
// replace record to reply
|
||||
I2NPBuildResponseRecord * reply = (I2NPBuildResponseRecord *)(records + i);
|
||||
reply->ret = 0;
|
||||
reply->ret = i2p::context.AcceptsTunnels () ? 0 : 30; // always reject with bandwidth reason (30)
|
||||
//TODO: fill filler
|
||||
CryptoPP::SHA256().CalculateDigest(reply->hash, reply->padding, sizeof (reply->padding) + 1); // + 1 byte of ret
|
||||
// encrypt reply
|
||||
|
||||
Reference in New Issue
Block a user