diff --git a/build.gradle b/build.gradle index 2857756..bb1337b 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ dependencies { implementation 'com.nimbusds:nimbus-jose-jwt:9.10' implementation 'org.bdware.doip:doip-sdk:1.4.2' implementation 'org.bdware.doip:doip-audit-tool:1.2.6' - implementation 'org.bdware.doip:bdosclient:0.0.3' + implementation 'org.bdware.doip:bdosclient:0.0.5' implementation fileTree(dir: 'lib', include: '*.jar') testImplementation 'junit:junit:4.13.2' implementation 'io.netty:netty-tcnative-boringssl-static:2.0.59.Final' diff --git a/src/main/java/org/bdware/server/action/TemporyTestAction.java b/src/main/java/org/bdware/server/action/TemporyTestAction.java index 3952116..eb3b932 100644 --- a/src/main/java/org/bdware/server/action/TemporyTestAction.java +++ b/src/main/java/org/bdware/server/action/TemporyTestAction.java @@ -169,11 +169,13 @@ public class TemporyTestAction { Contract c = new Contract(); c.setScript(args.get("script").getAsString()); c.setOwner(args.get("owner").getAsString()); + c.setDoipPort(args.get("doipStartPort").getAsInt()); ContractManager.instance.allocateKeyIfNotExists(c); JsonObject jo = JsonUtil.parseObjectAsJsonObject(c); jo.addProperty("action", "onAllocateKeyPair"); resultCallback.onResult(jo.toString()); } + @Action(async = true) public void reconnectPort(JsonObject args, ResultCallback resultCallback) { ContractPort.PortVisitor reconnectVisitor = CMActions.manager.statusRecorder.getVisitor();