Disable username and password for SOCKS4

Authentication is only supported by SOCKS5 (I think :) ?!?)
This commit is contained in:
0xboobface 2018-10-23 22:32:43 +02:00
parent ba4f7b6e1a
commit 5b50372772
1 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,5 @@
package ctbrec.ui;
import static ctbrec.Settings.ProxyType.DIRECT;
import static ctbrec.Settings.ProxyType.HTTP;
import static ctbrec.Settings.ProxyType.SOCKS4;
import static ctbrec.Settings.ProxyType.SOCKS5;
import static ctbrec.Settings.ProxyType.*;
import java.util.ArrayList;
import java.util.List;
@ -99,8 +96,8 @@ public class ProxySettingsPane extends TitledPane implements EventHandler<Action
} else {
proxyHost.setDisable(false);
proxyPort.setDisable(false);
proxyUser.setDisable(false);
proxyPassword.setDisable(false);
proxyUser.setDisable(proxyType.getValue() == SOCKS4);
proxyPassword.setDisable(proxyType.getValue() == SOCKS4);
}
}
}