mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Make tunnels.conf more readable
This commit is contained in:
@@ -6,12 +6,19 @@ void TunnelConfig::saveHeaderToStringStream(std::stringstream& out) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TunnelConfig::saveI2CPParametersToStringStream(std::stringstream& out) {
|
void TunnelConfig::saveI2CPParametersToStringStream(std::stringstream& out) {
|
||||||
out << "inbound.length=" << i2cpParameters.getInbound_length().toStdString() << "\n"
|
if (i2cpParameters.getInbound_length().toUShort() != 3)
|
||||||
<< "outbound.length=" << i2cpParameters.getOutbound_length().toStdString() << "\n"
|
out << "inbound.length=" << i2cpParameters.getInbound_length().toStdString() << "\n";
|
||||||
<< "inbound.quantity=" << i2cpParameters.getInbound_quantity().toStdString() << "\n"
|
if (i2cpParameters.getOutbound_length().toUShort() != 3)
|
||||||
<< "outbound.quantity=" << i2cpParameters.getOutbound_quantity().toStdString() << "\n"
|
out << "outbound.length=" << i2cpParameters.getOutbound_length().toStdString() << "\n";
|
||||||
<< "crypto.tagsToSend=" << i2cpParameters.getCrypto_tagsToSend().toStdString() << "\n"
|
if (i2cpParameters.getInbound_quantity().toUShort() != 5)
|
||||||
<< "explicitPeers=" << i2cpParameters.getExplicitPeers().toStdString() << "\n\n";
|
out << "inbound.quantity=" << i2cpParameters.getInbound_quantity().toStdString() << "\n";
|
||||||
|
if (i2cpParameters.getOutbound_quantity().toUShort() != 5)
|
||||||
|
out << "outbound.quantity=" << i2cpParameters.getOutbound_quantity().toStdString() << "\n";
|
||||||
|
if (i2cpParameters.getCrypto_tagsToSend().toUShort() != 40)
|
||||||
|
out << "crypto.tagsToSend=" << i2cpParameters.getCrypto_tagsToSend().toStdString() << "\n";
|
||||||
|
if (!i2cpParameters.getExplicitPeers().isEmpty())
|
||||||
|
out << "explicitPeers=" << i2cpParameters.getExplicitPeers().toStdString() << "\n";
|
||||||
|
out << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientTunnelConfig::saveToStringStream(std::stringstream& out) {
|
void ClientTunnelConfig::saveToStringStream(std::stringstream& out) {
|
||||||
|
|||||||
Reference in New Issue
Block a user