i2ptunnel: More disabled options

This commit is contained in:
zzz
2020-05-08 22:29:09 +00:00
parent 69ef47e68c
commit 4ff234c110
3 changed files with 78 additions and 32 deletions

View File

@ -274,6 +274,13 @@ public class EditBean extends IndexBean {
return true;
}
/** @since 0.9.46 */
public boolean canChangePort(int tunnel) {
if (tunnel < 0)
return true;
return getTunnelStatus(tunnel) == GeneralHelper.NOT_RUNNING;
}
/**
* @param encType code
* @since 0.9.44