fixed tls call of resolveAddress and made one Reader function static

This commit is contained in:
Claudius Holeksa 2022-03-20 18:55:09 +01:00
parent 3ff512bfca
commit 28ea7d6708
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ public:
}
template <StringLiteral Literal>
constexpr size_t toIndex() const noexcept {
static constexpr size_t toIndex() const noexcept {
return MessageParameterKeyPackIndex<Literal, Keys...>::Value;
}

View File

@ -241,7 +241,7 @@ Conveyor<Own<NetworkAddress>> TlsNetwork::resolveAddress(const std::string &addr
uint16_t port) {
/// @todo tls server name needed. Check validity. Won't matter later on, because gnutls should fail anyway. But
/// it's better to find the error source sooner rather than later
return internal.parseAddress(addr, port);
return internal.resolveAddress(addr, port);
}
std::optional<Own<TlsNetwork>> setupTlsNetwork(Network &network) {