SolidWallOfCode commented on code in PR #9767:
URL: https://github.com/apache/trafficserver/pull/9767#discussion_r1222053444
##########
iocore/net/SSLSNIConfig.cc:
##########
@@ -111,80 +113,72 @@ int
SNIConfigParams::load_sni_config()
{
for (auto &item : yaml_sni.items) {
- auto ai = sni_action_list.emplace(sni_action_list.end());
- ai->set_glob_name(item.fqdn);
+ auto &ai = sni_action_list.emplace_back();
+ ai.set_glob_name(item.fqdn);
+ if (!item.port_ranges.empty()) {
+ auto const [min, max]{item.port_ranges[0]};
+ ai.ports = {static_cast<uint16_t>(min), static_cast<uint16_t>(max)};
Review Comment:
use `in_port_t` instead of `uint16_t`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]