don't create unique loopback address for ::1 if not set explicitly

This commit is contained in:
orignal 2025-08-27 18:33:46 -04:00
parent 310ee78d24
commit 938a698904

View file

@ -774,7 +774,7 @@ namespace client
i2p::data::CryptoKeyType cryptoType = section.second.get (I2P_CLIENT_TUNNEL_CRYPTO_TYPE, i2p::data::CRYPTO_KEY_TYPE_ELGAMAL);
std::string address = section.second.get<std::string> (I2P_SERVER_TUNNEL_ADDRESS, "");
bool isUniqueLocal = section.second.get (I2P_SERVER_TUNNEL_ENABLE_UNIQUE_LOCAL, true);
bool isUniqueLocal = section.second.get (I2P_SERVER_TUNNEL_ENABLE_UNIQUE_LOCAL, (host == "::1") ? false : true);
bool ssl = section.second.get (I2P_SERVER_TUNNEL_SSL, false);
// I2CP