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

This commit is contained in:
Yat Ho
2026-01-10 22:25:09 +08:00
committed by GitHub
parent 114b36e910
commit 9491a4e71d

View File

@@ -855,7 +855,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());
}