mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
[socks5] Ensure that the local SOCKS5 proxy is running (if enabled)
In 9352225f44
("Rework SOCKS5 unit tests so that they can be run in
parallel") the call to getSocks5Proxy() in
Socks5BytestreamManager.getLocalStreamHost() was removed. Since
getSocks5Proxy() does also start the local proxy, if it is not already
running, this caused Smack to no longer automatically start the local
proxy.
This commit re-adds the call to getSocks5Proxy() and fixes SMACK-912.
This commit is contained in:
parent
1564b98d60
commit
8ae5ef1f51
1 changed files with 3 additions and 0 deletions
|
@ -658,6 +658,9 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
|
|||
* is not running
|
||||
*/
|
||||
public List<StreamHost> getLocalStreamHost() {
|
||||
// Ensure that the local SOCKS5 proxy is running (if enabled).
|
||||
Socks5Proxy.getSocks5Proxy();
|
||||
|
||||
List<StreamHost> streamHosts = new ArrayList<>();
|
||||
|
||||
XMPPConnection connection = connection();
|
||||
|
|
Loading…
Reference in a new issue