mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
Added using remembered password in autoconnect.
This commit is contained in:
parent
2695f584be
commit
8d45a9465e
1 changed files with 4 additions and 0 deletions
|
@ -476,6 +476,8 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
int proxyPort = Integer.parseInt(prefs.get("proxyPort", ""));
|
||||
ProxyType proxyType = Connection.ProxyType.valueByText(prefs.get("proxyType", "None"));
|
||||
String proxyUsername = prefs.get("proxyUsername", "");
|
||||
String proxyPassword = prefs.get("proxyPassword", "");
|
||||
|
||||
try {
|
||||
setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
||||
Connection connection = new Connection();
|
||||
|
@ -486,6 +488,8 @@ public class MageFrame extends javax.swing.JFrame {
|
|||
connection.setProxyHost(proxyServer);
|
||||
connection.setProxyPort(proxyPort);
|
||||
connection.setProxyUsername(proxyUsername);
|
||||
connection.setProxyPassword(proxyPassword);
|
||||
logger.debug("connecting (auto): " + proxyType + " " + proxyServer + " " + proxyPort + " " + proxyUsername);
|
||||
if (MageFrame.connect(connection)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue