Browse Source

Fixed `RenX_ListenPlugin::OnRehash`

release/0.19
Jessica James 5 years ago
parent
commit
0dabd4d757
  1. 2
      src/Plugins/RenX/RenX.Listen/RenX_Listen.cpp

2
src/Plugins/RenX/RenX.Listen/RenX_Listen.cpp

@ -60,7 +60,7 @@ int RenX_ListenPlugin::OnRehash()
const Jupiter::ReadableString &address = this->config.get("Address"_jrs, "0.0.0.0"_jrs); const Jupiter::ReadableString &address = this->config.get("Address"_jrs, "0.0.0.0"_jrs);
RenX_ListenPlugin::serverSection = this->config.get("ServerSection"_jrs, this->getName()); RenX_ListenPlugin::serverSection = this->config.get("ServerSection"_jrs, this->getName());
if (port != RenX_ListenPlugin::socket.getRemotePort() || address.equals(RenX_ListenPlugin::socket.getRemoteHostname()) == false) if (port != RenX_ListenPlugin::socket.getBoundPort() || address.equals(RenX_ListenPlugin::socket.getBoundHostname()) == false)
{ {
puts("Notice: The Renegade-X listening socket has been changed!"); puts("Notice: The Renegade-X listening socket has been changed!");
RenX_ListenPlugin::socket.close(); RenX_ListenPlugin::socket.close();

Loading…
Cancel
Save