diff options
| author | 2024-08-27 14:09:21 +0100 | |
|---|---|---|
| committer | 2024-08-27 14:09:21 +0100 | |
| commit | a5fc0da690ea62c3a76ca2cceaa2ab344a93fce3 (patch) | |
| tree | d0c81a7700ac184b50417f146204dfbcda502811 /src/socket.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Fix the case of some InspIRCd class member variables.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 2ec6d16b3..9f520df16 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -79,14 +79,14 @@ bool InspIRCd::BindPort(const std::shared_ptr<ConfigTag>& tag, const irc::socket } ServerInstance->Logs.Debug("SOCKET", "Added a listener on {} from tag at {}", sa.str(), tag->source.str()); - ports.push_back(ll); + Ports.push_back(ll); return true; } size_t InspIRCd::BindPorts(FailedPortList& failed_ports) { size_t bound = 0; - std::vector<ListenSocket*> old_ports(ports.begin(), ports.end()); + std::vector<ListenSocket*> old_ports(Ports.begin(), Ports.end()); for (const auto& [_, tag] : ServerInstance->Config->ConfTags("bind")) { @@ -209,12 +209,12 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) } } - std::vector<ListenSocket*>::iterator n = ports.begin(); + std::vector<ListenSocket*>::iterator n = Ports.begin(); for (auto* old_port : old_ports) { - while (n != ports.end() && *n != old_port) + while (n != Ports.end() && *n != old_port) n++; - if (n == ports.end()) + if (n == Ports.end()) { this->Logs.Warning("SOCKET", "Port bindings slipped out of vector, aborting close!"); break; @@ -225,7 +225,7 @@ size_t InspIRCd::BindPorts(FailedPortList& failed_ports) delete *n; // this keeps the iterator valid, pointing to the next element - n = ports.erase(n); + n = Ports.erase(n); } return bound; |
