Send password on reconnect.

This commit is contained in:
Me Car 2016-01-14 09:53:23 +09:00
parent 90322d2846
commit cb050c3208

View file

@ -746,6 +746,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
private boolean performConnect() { private boolean performConnect() {
String userName = prefs.get("userName", ""); String userName = prefs.get("userName", "");
String password = prefs.get("password", "");
String server = prefs.get("serverAddress", ""); String server = prefs.get("serverAddress", "");
int port = Integer.parseInt(prefs.get("serverPort", "")); int port = Integer.parseInt(prefs.get("serverPort", ""));
String proxyServer = prefs.get("proxyAddress", ""); String proxyServer = prefs.get("proxyAddress", "");
@ -757,6 +758,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
setCursor(new Cursor(Cursor.WAIT_CURSOR)); setCursor(new Cursor(Cursor.WAIT_CURSOR));
Connection connection = new Connection(); Connection connection = new Connection();
connection.setUsername(userName); connection.setUsername(userName);
connection.setPassword(password);
connection.setHost(server); connection.setHost(server);
connection.setPort(port); connection.setPort(port);
connection.setProxyType(proxyType); connection.setProxyType(proxyType);