Hostname needs a default constructor.

This commit is contained in:
Renxuan Wang 2022-01-20 15:32:03 -08:00
parent a6c482ee91
commit 1d62bc9437
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ struct Hostname {
bool isTLS;
Hostname(std::string host, std::string service, bool isTLS) : host(host), service(service), isTLS(isTLS) {}
Hostname() : host(""), service(""), isTLS(false) {}
// Allow hostnames in forms like following:
// hostname:1234