INS bug fix (resolving default InfoNames)
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>Protocol</artifactId>
|
<artifactId>Protocol</artifactId>
|
||||||
<version>1.0.0-BETA.1.0</version>
|
<version>1.0.0-BETA.1.1</version>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Open Autonomous Connection</name>
|
<name>Open Autonomous Connection</name>
|
||||||
<url>https://open-autonomous-connection.org/</url>
|
<url>https://open-autonomous-connection.org/</url>
|
||||||
|
|||||||
@@ -109,7 +109,10 @@ public final class CustomServerListener extends EventListener {
|
|||||||
resolved = List.of(new INSRecord(q.getType(), hostPort[0], -1, -1, Integer.parseInt(hostPort[1]), 0));
|
resolved = List.of(new INSRecord(q.getType(), hostPort[0], -1, -1, Integer.parseInt(hostPort[1]), 0));
|
||||||
} else if (q.getName().equalsIgnoreCase("register")) {
|
} else if (q.getName().equalsIgnoreCase("register")) {
|
||||||
// Return INS frontend site
|
// Return INS frontend site
|
||||||
String[] hostPort = insServer.getInsFrontendSite().split(":");
|
String insFrontend = insServer.getInsFrontendSite();
|
||||||
|
if (!insFrontend.contains(":")) insFrontend = insFrontend + ":1028";
|
||||||
|
|
||||||
|
String[] hostPort = insFrontend.split(":");
|
||||||
resolved = List.of(new INSRecord(q.getType(), hostPort[0], -1, -1, Integer.parseInt(hostPort[1]), 0));
|
resolved = List.of(new INSRecord(q.getType(), hostPort[0], -1, -1, Integer.parseInt(hostPort[1]), 0));
|
||||||
} else {
|
} else {
|
||||||
// Not a special name → use normal resolving
|
// Not a special name → use normal resolving
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// File: org/openautonomousconnection/protocol/packets/v1_0_0/beta/web/WebRequestPacket.java
|
|
||||||
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web;
|
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// File: org/openautonomousconnection/protocol/packets/v1_0_0/beta/web/WebResponsePacket.java
|
|
||||||
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web;
|
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// File: org/openautonomousconnection/protocol/packets/v1_0_0/beta/web/stream/WebStreamStartPacket.java
|
|
||||||
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.stream;
|
package org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.stream;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|||||||
Reference in New Issue
Block a user