Updated Protocol
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>INSServer</artifactId>
|
<artifactId>INSServer</artifactId>
|
||||||
<version>1.0.0-BETA.1.5</version>
|
<version>1.0.0-BETA.1.6</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>
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.openautonomousconnection</groupId>
|
<groupId>org.openautonomousconnection</groupId>
|
||||||
<artifactId>Protocol</artifactId>
|
<artifactId>Protocol</artifactId>
|
||||||
<version>1.0.0-BETA.7.4</version>
|
<version>1.0.0-BETA.7.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
|
|||||||
@@ -58,13 +58,8 @@ public class Main {
|
|||||||
config.saveProperties();
|
config.saveProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config.isSet("port.udp")) {
|
if (!config.isSet("port")) {
|
||||||
config.set("port.udp", 1025);
|
config.set("port", 1026);
|
||||||
config.saveProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!config.isSet("port.tcp")) {
|
|
||||||
config.set("port.tcp", 1026);
|
|
||||||
config.saveProperties();
|
config.saveProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +77,7 @@ public class Main {
|
|||||||
String user = config.getString("db.user");
|
String user = config.getString("db.user");
|
||||||
String password = config.getString("db.password");
|
String password = config.getString("db.password");
|
||||||
|
|
||||||
int tcpPort = config.getInt("port.tcp");
|
int tcpPort = config.getInt("port");
|
||||||
int udpPort = config.getInt("port.udp");
|
|
||||||
|
|
||||||
String info = config.getString("ins.info");
|
String info = config.getString("ins.info");
|
||||||
String frontend = config.getString("ins.frontend");
|
String frontend = config.getString("ins.frontend");
|
||||||
|
|||||||
Reference in New Issue
Block a user