Skip to content
Permalink
Browse files

Tox: fix setting proxy host

  • Loading branch information...
aunsane committed Sep 15, 2017
1 parent e7c55a0 commit e9800f7b8eb7052c4e799c3d3307a233c7b3e176
Showing with 2 additions and 2 deletions.
  1. +2 −2 protocols/Tox/src/tox_core.cpp
@@ -20,14 +20,14 @@ Tox_Options* CToxProto::GetToxOptions()
if (nlus.proxyType == PROXYTYPE_HTTP || nlus.proxyType == PROXYTYPE_HTTPS) {
debugLogA(__FUNCTION__": setting http user proxy config");
options->proxy_type = TOX_PROXY_TYPE_HTTP;
mir_strcpy((char*)&options->proxy_host[0], nlus.szProxyServer);
options->proxy_host = nlus.szProxyServer;
options->proxy_port = nlus.wProxyPort;
}

if (nlus.proxyType == PROXYTYPE_SOCKS4 || nlus.proxyType == PROXYTYPE_SOCKS5) {
debugLogA(__FUNCTION__": setting socks user proxy config");
options->proxy_type = TOX_PROXY_TYPE_SOCKS5;
mir_strcpy((char*)&options->proxy_host[0], nlus.szProxyServer);
options->proxy_host = nlus.szProxyServer;
options->proxy_port = nlus.wProxyPort;
}
}

0 comments on commit e9800f7

Please sign in to comment.
You can’t perform that action at this time.