if (host.empty())
throw ModuleException("<sts:host> must contain a hostname, at " + tag->getTagLocation());
- int port = tag->getInt("port");
+ unsigned int port = tag->getInt("port", 0, 0, UINT16_MAX);
if (!HasValidSSLPort(port))
throw ModuleException("<sts:port> must be a TLS port, at " + tag->getTagLocation());