INS bug fix (resolving default InfoNames)

This commit is contained in:
UnlegitDqrk
2026-02-14 17:22:34 +01:00
parent fb8ff372d3
commit cd58d37ea2
5 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
<groupId>org.openautonomousconnection</groupId>
<artifactId>Protocol</artifactId>
<version>1.0.0-BETA.1.0</version>
<version>1.0.0-BETA.1.1</version>
<organization>
<name>Open Autonomous Connection</name>
<url>https://open-autonomous-connection.org/</url>

View File

@@ -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));
} else if (q.getName().equalsIgnoreCase("register")) {
// 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));
} else {
// Not a special name → use normal resolving

View File

@@ -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;
import lombok.Getter;

View File

@@ -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;
import lombok.Getter;

View File

@@ -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;
import lombok.Getter;