Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Fixed inconsistent port check on ConfigBasic

luccioman76cf7dea2d3a
diff --git a/htroot/ConfigBasic.java b/htroot/ConfigBasic.java
index 378ee2e07..6144bd5af 100644
--- a/htroot/ConfigBasic.java
+++ b/htroot/ConfigBasic.java
@@ -131,7 +131,7 @@ public class ConfigBasic {
// check port and ssl connection
final boolean reconnect;
- if (!(env.getConfigLong("port", port) == port) || env.getConfigBool("server.https", false) != ssl) {
+ if (!(env.getLocalPort() == port) || env.getConfigBool("server.https", false) != ssl) {
// validate port
final YaCyHttpServer theServerCore = env.getHttpServer();
env.setConfig("port", port);