mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
Make Socks5Proxy try other ports if 7777 is already in use
by setting the default value to '-7777' (negative values mean that the next port number will be tried if the current one is in use).
This commit is contained in:
parent
d65d239550
commit
5c2f051c1c
1 changed files with 6 additions and 1 deletions
|
@ -73,7 +73,12 @@ public class Socks5Proxy {
|
|||
private static Socks5Proxy socks5Server;
|
||||
|
||||
private static boolean localSocks5ProxyEnabled = true;
|
||||
private static int localSocks5ProxyPort = 7777;
|
||||
|
||||
/**
|
||||
* The port of the local Socks5 Proxy. If this value is negative, the next ports will be tried
|
||||
* until a unused is found.
|
||||
*/
|
||||
private static int localSocks5ProxyPort = -7777;
|
||||
|
||||
/* reusable implementation of a SOCKS5 proxy server process */
|
||||
private Socks5ServerProcess serverProcess;
|
||||
|
|
Loading…
Reference in a new issue