mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 16:34:13 +00:00
don't publish invalid host/port
This commit is contained in:
parent
e537878b8a
commit
987497bb10
@ -1307,7 +1307,7 @@ namespace data
|
|||||||
else
|
else
|
||||||
WriteString ("", s);
|
WriteString ("", s);
|
||||||
|
|
||||||
if (isPublished)
|
if (isPublished && !address.host.is_unspecified ())
|
||||||
{
|
{
|
||||||
WriteString ("host", properties);
|
WriteString ("host", properties);
|
||||||
properties << '=';
|
properties << '=';
|
||||||
@ -1410,7 +1410,7 @@ namespace data
|
|||||||
properties << ';';
|
properties << ';';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isPublished || (address.ssu && !address.IsSSU2 ()))
|
if ((isPublished || (address.ssu && !address.IsSSU2 ())) && address.port)
|
||||||
{
|
{
|
||||||
WriteString ("port", properties);
|
WriteString ("port", properties);
|
||||||
properties << '=';
|
properties << '=';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user