Added support for changeng which IP I2PControl listens to. For now only 127.0.0.1/0.0.0.0.

Revised layout in SettingsFrame.
This commit is contained in:
dev
2011-08-01 11:59:37 +00:00
parent ea96959964
commit a9f759e53c
3 changed files with 105 additions and 31 deletions

View File

@ -24,7 +24,7 @@ public class GetI2PControl {
public static EnumMap<I2P_CONTROL, Object> execute(I2P_CONTROL ... settings)
throws InvalidPasswordException, JSONRPC2SessionException, InvalidParametersException{
throws InvalidPasswordException, JSONRPC2SessionException{
JSONRPC2Request req = new JSONRPC2Request("I2PControl", JSONRPC2Interface.incrNonce());
@ -59,6 +59,8 @@ public class GetI2PControl {
}
} catch (UnrecoverableFailedRequestException e) {
_log.error("getI2PControl failed.", e);
} catch (InvalidParametersException e) {
_log.error("getI2PControl was rejected by remote host as invalid.", e);
}
return null;
}