- NTCP Port must now be either auto or configured;

now defaults to auto; and configured now trumps auto.
  Port configuration now does not affect whether inbound
  NTCP is enabled - the host configuration alone can do that.
This commit is contained in:
zzz
2009-04-30 16:50:47 +00:00
parent 4929a7e635
commit 5b44bcb44f
4 changed files with 32 additions and 30 deletions

View File

@ -103,10 +103,8 @@ public class ConfigNetHelper extends HelperBase {
return DISABLED;
String port = _context.getProperty(PROP_I2NP_NTCP_PORT);
boolean specified = port != null && port.length() > 0;
boolean auto = Boolean.valueOf(_context.getProperty(PROP_I2NP_NTCP_AUTO_PORT)).booleanValue();
if ((mode == 0 && (!specified) && !auto) ||
(mode == 1 && specified && !auto) ||
(mode == 2 && auto))
if ((mode == 1 && specified) ||
(mode == 2 && !specified))
return CHECKED;
return "";
}