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); TunnelController tun = getController(tunnel);
if (tun != null && tun.getPrivKeyFile() != null) if (tun != null && tun.getPrivKeyFile() != null)
return tun.getPrivKeyFile(); return tun.getPrivKeyFile();
else if (tunnel < 0)
return ""; tunnel = _group.getControllers().size();
return "i2ptunnel" + tunnel + "-privKeys.dat";
} }
public boolean startAutomatically(int tunnel) { public boolean startAutomatically(int tunnel) {