forked from External/mage
connection: disabled outdated proxy settings (#13323)
This commit is contained in:
parent
19269b22b0
commit
62ba9f02ba
5 changed files with 40 additions and 19 deletions
|
|
@ -365,12 +365,17 @@ public class ConnectDialog extends JDialog {
|
|||
connection.setPort(Integer.parseInt(this.txtPort.getText()));
|
||||
connection.setAdminPassword(new String(txtPassword.getPassword()));
|
||||
connection.setUsername(SessionImpl.ADMIN_NAME);
|
||||
connection.setProxyType((ProxyType) this.cbProxyType.getSelectedItem());
|
||||
if (!this.cbProxyType.getSelectedItem().equals(ProxyType.NONE)) {
|
||||
connection.setProxyHost(this.txtProxyServer.getText());
|
||||
connection.setProxyPort(Integer.parseInt(this.txtProxyPort.getText()));
|
||||
connection.setProxyUsername(this.txtProxyUserName.getText());
|
||||
connection.setProxyPassword(new String(this.txtPasswordField.getPassword()));
|
||||
|
||||
if (false) { // TODO: delete proxy at all after few releases, 2025-02-09
|
||||
connection.setProxyType((ProxyType) this.cbProxyType.getSelectedItem());
|
||||
if (!this.cbProxyType.getSelectedItem().equals(ProxyType.NONE)) {
|
||||
connection.setProxyHost(this.txtProxyServer.getText());
|
||||
connection.setProxyPort(Integer.parseInt(this.txtProxyPort.getText()));
|
||||
connection.setProxyUsername(this.txtProxyUserName.getText());
|
||||
connection.setProxyPassword(new String(this.txtPasswordField.getPassword()));
|
||||
}
|
||||
} else {
|
||||
connection.setProxyType(ProxyType.NONE);
|
||||
}
|
||||
|
||||
logger.debug("connecting: " + connection.getProxyType() + ' ' + connection.getProxyHost() + ' ' + connection.getProxyPort());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue