Disable/fix ports with I2P

This commit is contained in:
Lee Clagett
2024-01-30 13:36:21 -05:00
committed by Lee *!* Clagett
parent 8eab181fe1
commit 98ee46f249
5 changed files with 52 additions and 85 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ namespace net
if (host_str_ref.ends_with(".onion"))
return tor_address::make(address, default_port);
if (host_str_ref.ends_with(".i2p"))
return i2p_address::make(address, default_port);
return i2p_address::make(address);
boost::system::error_code ec;
boost::asio::ip::address_v6 v6 = boost::asio::ip::address_v6::from_string(host_str, ec);