forked from premiere/premiere-libtorrent
fix UPnP issue for routers with multiple PPPoE connections
This commit is contained in:
parent
d27430a8c3
commit
06cad3a245
|
@ -92,6 +92,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* added more detailed instrumentation of the disk I/O thread
|
||||||
|
|
||||||
|
* fix UPnP issue for routers with multiple PPPoE connections
|
||||||
* fix issue where event=stopped announces wouldn't be sent when closing session
|
* fix issue where event=stopped announces wouldn't be sent when closing session
|
||||||
* fix possible hang in file::readv() on windows
|
* fix possible hang in file::readv() on windows
|
||||||
* fix CPU busy loop issue in tracker announce logic
|
* fix CPU busy loop issue in tracker announce logic
|
||||||
|
|
|
@ -820,8 +820,9 @@ TORRENT_EXPORT void find_control_url(int type, char const* string, parse_state&
|
||||||
if (string_equal_no_case(string, state.service_type))
|
if (string_equal_no_case(string, state.service_type))
|
||||||
state.in_service = true;
|
state.in_service = true;
|
||||||
}
|
}
|
||||||
else if (state.in_service && state.top_tags("service", "controlurl"))
|
else if (state.control_url.empty() && state.in_service && state.top_tags("service", "controlurl"))
|
||||||
{
|
{
|
||||||
|
// default to the first (or only) control url in the router's listing
|
||||||
state.control_url = string;
|
state.control_url = string;
|
||||||
}
|
}
|
||||||
else if (state.model.empty() && state.top_tags("device", "modelname"))
|
else if (state.model.empty() && state.top_tags("device", "modelname"))
|
||||||
|
|
Loading…
Reference in New Issue