Disable username and password for SOCKS4
Authentication is only supported by SOCKS5 (I think :) ?!?)
This commit is contained in:
parent
ba4f7b6e1a
commit
5b50372772
|
@ -1,8 +1,5 @@
|
||||||
package ctbrec.ui;
|
package ctbrec.ui;
|
||||||
import static ctbrec.Settings.ProxyType.DIRECT;
|
import static ctbrec.Settings.ProxyType.*;
|
||||||
import static ctbrec.Settings.ProxyType.HTTP;
|
|
||||||
import static ctbrec.Settings.ProxyType.SOCKS4;
|
|
||||||
import static ctbrec.Settings.ProxyType.SOCKS5;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -99,8 +96,8 @@ public class ProxySettingsPane extends TitledPane implements EventHandler<Action
|
||||||
} else {
|
} else {
|
||||||
proxyHost.setDisable(false);
|
proxyHost.setDisable(false);
|
||||||
proxyPort.setDisable(false);
|
proxyPort.setDisable(false);
|
||||||
proxyUser.setDisable(false);
|
proxyUser.setDisable(proxyType.getValue() == SOCKS4);
|
||||||
proxyPassword.setDisable(false);
|
proxyPassword.setDisable(proxyType.getValue() == SOCKS4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue