add reasonable privkey file name default

This commit is contained in:
zzz
2009-03-01 20:44:01 +00:00
parent bfa02f3b82
commit 59b624a4a4

View File

@ -60,8 +60,9 @@ public class EditBean extends IndexBean {
TunnelController tun = getController(tunnel);
if (tun != null && tun.getPrivKeyFile() != null)
return tun.getPrivKeyFile();
else
return "";
if (tunnel < 0)
tunnel = _group.getControllers().size();
return "i2ptunnel" + tunnel + "-privKeys.dat";
}
public boolean startAutomatically(int tunnel) {