fix: recover from failed UPnP discovery

This commit is contained in:
Yat Ho 2024-04-06 10:07:58 +08:00
parent 4f4831a82b
commit 9dfc4bbfde
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ tr_port_forwarding_state tr_upnpPulse(
}
else
{
handle->state = UpnpState::Failed;
handle->state = UpnpState::WillDiscover;
tr_logAddDebug(fmt::format("UPNP_GetValidIGD failed: {} ({})", tr_strerror(errno), errno));
tr_logAddDebug("If your router supports UPnP, please make sure UPnP is enabled!");
}