mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
ircd:Ⓜ️🆔 Report 0 if no port affixed to ID, 8448 not implied bc/ SRV.
This commit is contained in:
parent
b07213043f
commit
b675567314
|
@ -66,7 +66,7 @@ struct ircd::m::id
|
|||
string_view host() const; // The full server part including port
|
||||
string_view localname() const; // The localpart not including sigil
|
||||
string_view hostname() const; // The server part not including port
|
||||
uint16_t port() const; // Just the port number or 8448 if none
|
||||
uint16_t port() const; // Just the port number or 0 if none
|
||||
|
||||
IRCD_USING_OVERLOAD(generate, m::generate);
|
||||
|
||||
|
|
|
@ -519,14 +519,14 @@ const
|
|||
omit[parser.prefix >> ':' >> parser.dns_name >> ':'] >> parser.port
|
||||
};
|
||||
|
||||
uint16_t ret{8448};
|
||||
uint16_t ret{0};
|
||||
auto *start{begin()};
|
||||
const auto res
|
||||
{
|
||||
qi::parse(start, end(), rule, ret)
|
||||
};
|
||||
|
||||
assert(res || ret == 8448);
|
||||
assert(res || ret == 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue