From 4e00b23f07582c7867d4dd9fec29362f01a9a9dc Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Wed, 22 Mar 2017 19:30:59 +0100 Subject: [PATCH] =?utf8?q?upd:=20don=E2=80=99t=20initialize=20name.suffix?= =?utf8?q?=20from=20name.www?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This feature was somewhat backward (normally, name.www defaults to www.name.suffix), and would have broken on www subdomains not exactly three letters wrong. Let’s remove it. Change-Id: Iddf29a2c3fd1f5e92df7bba31d3c44131d74b84c --- src/club/wpia/gigi/util/ServerConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/club/wpia/gigi/util/ServerConstants.java b/src/club/wpia/gigi/util/ServerConstants.java index 8ff3883c..3fd2e70e 100644 --- a/src/club/wpia/gigi/util/ServerConstants.java +++ b/src/club/wpia/gigi/util/ServerConstants.java @@ -73,7 +73,7 @@ public class ServerConstants { secureBindPort = conf.getProperty("https.bindPort", conf.getProperty("https.port")); bindPort = conf.getProperty("http.bindPort", conf.getProperty("http.port")); - suffix = conf.getProperty("name.suffix", conf.getProperty("name.www", "www.wpia.local").substring(4)); + suffix = conf.getProperty("name.suffix", "wpia.local"); HashMap hostnames = new HashMap<>(); for (Host h : Host.values()) { hostnames.put(h, conf.getProperty("name." + h.getConfigName(), h.getHostDefaultPrefix() + "." + suffix)); -- 2.39.2