fixed some typos
This commit is contained in:
parent
2ec6a53c71
commit
8a4685e83b
@ -642,7 +642,7 @@ namespace libtorrent
|
||||
// the path passed to FindFirstFile() must be
|
||||
// a pattern
|
||||
std::string f = path;
|
||||
if (!f.empty() && (f[f.size()-1] != '/' || f[f.size()-1] != '\\')) f += "\\*";
|
||||
if (!f.empty() && (f[f.size()-1] != '/' && f[f.size()-1] != '\\')) f += "\\*";
|
||||
else f += "*";
|
||||
#if TORRENT_USE_WSTRING
|
||||
#define FindFirstFile_ FindFirstFileW
|
||||
|
@ -5110,8 +5110,7 @@ namespace aux {
|
||||
// if peer connections are set up to be received over a socks
|
||||
// proxy, and it's the same one as we're using for the tracker
|
||||
// just tell the tracker the socks5 port we're listening on
|
||||
if (m_socks_listen_socket && m_socks_listen_socket->is_open()
|
||||
&& m_proxy.hostname == m_proxy.hostname)
|
||||
if (m_socks_listen_socket && m_socks_listen_socket->is_open())
|
||||
return m_socks_listen_port;
|
||||
|
||||
// if not, don't tell the tracker anything if we're in anonymous
|
||||
|
Loading…
x
Reference in New Issue
Block a user