web seed fix
This commit is contained in:
parent
6aba061cb8
commit
faf11fc27d
|
@ -96,7 +96,7 @@ namespace libtorrent
|
||||||
void on_receive(error_code const& error
|
void on_receive(error_code const& error
|
||||||
, std::size_t bytes_transferred);
|
, std::size_t bytes_transferred);
|
||||||
|
|
||||||
std::string const& url() const { return m_original_url; }
|
std::string const& url() const { return m_url; }
|
||||||
|
|
||||||
virtual void get_specific_peer_info(peer_info& p) const;
|
virtual void get_specific_peer_info(peer_info& p) const;
|
||||||
virtual void disconnect(error_code const& ec, int error = 0);
|
virtual void disconnect(error_code const& ec, int error = 0);
|
||||||
|
@ -117,7 +117,6 @@ namespace libtorrent
|
||||||
std::deque<int> m_file_requests;
|
std::deque<int> m_file_requests;
|
||||||
|
|
||||||
std::string m_url;
|
std::string m_url;
|
||||||
std::string m_original_url;
|
|
||||||
|
|
||||||
// this is used for intermediate storage of pieces
|
// this is used for intermediate storage of pieces
|
||||||
// that are received in more than one HTTP response
|
// that are received in more than one HTTP response
|
||||||
|
|
|
@ -378,7 +378,7 @@ namespace libtorrent
|
||||||
+ (" " + m_parser.message());
|
+ (" " + m_parser.message());
|
||||||
if (m_ses.m_alerts.should_post<url_seed_alert>())
|
if (m_ses.m_alerts.should_post<url_seed_alert>())
|
||||||
{
|
{
|
||||||
m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), url()
|
m_ses.m_alerts.post_alert(url_seed_alert(t->get_handle(), m_url
|
||||||
, error_msg));
|
, error_msg));
|
||||||
}
|
}
|
||||||
m_statistics.received_bytes(0, bytes_transferred);
|
m_statistics.received_bytes(0, bytes_transferred);
|
||||||
|
|
Loading…
Reference in New Issue