fix: rebind udp sockets on bind-address change (#8096)

This commit is contained in:
Yat Ho
2026-01-10 06:16:36 +08:00
committed by GitHub
parent f2d2edbdb9
commit 0de550663d

View File

@@ -856,7 +856,7 @@ void tr_session::setSettings(tr_session::Settings&& settings_in, bool force)
port_forwarding_->local_port_changed();
}
if (!udp_core_ || force || port_changed || utp_changed)
if (!udp_core_ || force || addr_changed || port_changed || utp_changed)
{
udp_core_ = std::make_unique<tr_session::tr_udp_core>(*this, udpPort());
}