diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2021-09-20 16:31:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 16:31:07 +0200 |
commit | 0e24b5e7990cb86a0397b9feb81f7a6908858c6c (patch) | |
tree | 0b64be36dfbed626d58ce30cde37401da3aaff6d /TAO/orbsvcs | |
parent | 822763269c85d3bcc4a4453b1293be789a8a0228 (diff) | |
parent | 1ceca7d59580a854c5d80517301664a5fdeb4763 (diff) | |
download | ATCD-0e24b5e7990cb86a0397b9feb81f7a6908858c6c.tar.gz |
Merge pull request #1684 from jwillemsen/jwi-loopback
Use is_loopback to check for a loopback address
Diffstat (limited to 'TAO/orbsvcs')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp index dc935b3e89e..56e8a2fb68c 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp @@ -670,7 +670,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core) // the list of cached hostnames unless it is the only interface. size_t lo_cnt = 0; // Loopback interface count for (size_t j = 0; j < if_cnt; ++j) - if (inet_addrs[j].get_ip_address () == INADDR_LOOPBACK) + if (inet_addrs[j].is_loopback ()) lo_cnt++; // The instantiation for this template is in @@ -705,7 +705,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core) // Ignore any loopback interface if there are other // non-loopback interfaces. if (if_cnt != lo_cnt && - inet_addrs[i].get_ip_address() == INADDR_LOOPBACK) + inet_addrs[i].is_loopback ()) continue; if (this->hostname_in_ior_ != 0) |