Give choice of rpcd to connect to when last remembered connection is still running.
git-svn-id: file:///home/svn/framework3/trunk@13424 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
49fb90b835
commit
b4a58989c4
Binary file not shown.
|
@ -85,7 +85,10 @@ public class OpenConnectionDialog extends javax.swing.JDialog {
|
|||
String host = info.get("host").toString();
|
||||
int port = Integer.parseInt(info.get("port").toString());
|
||||
boolean ssl = Boolean.parseBoolean(info.get("ssl").toString());
|
||||
return new RpcConnection(username, password.toCharArray(), host, port, ssl);
|
||||
RpcConnection rpc = new RpcConnection(username, password.toCharArray(), host, port, ssl);
|
||||
if(javax.swing.JOptionPane.showConfirmDialog(null, "Connect to last remembered rpcd?") == javax.swing.JOptionPane.YES_OPTION)
|
||||
return rpc;
|
||||
rpc.execute("auth.logout");
|
||||
} catch (MsfException mex) {
|
||||
if(mex.getMessage().toLowerCase().contains("authentication error"))
|
||||
mainframe.statusAnimationLabel.setText("Error authenticating; msfrpcd is running "
|
||||
|
|
Loading…
Reference in New Issue