X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Futil%2FServerConstants.java;h=5ae4e1b320435fbf40f7bce0f020b1d042fcf072;hb=15c3594cf26458503691dc1993bdd6b414cf83c6;hp=8689209444b1f5199b0d6c29905aa2686d33d362;hpb=98410d964cfab49b45c5e56c4f9577f6527f400b;p=gigi.git diff --git a/src/org/cacert/gigi/util/ServerConstants.java b/src/org/cacert/gigi/util/ServerConstants.java index 86892094..5ae4e1b3 100644 --- a/src/org/cacert/gigi/util/ServerConstants.java +++ b/src/org/cacert/gigi/util/ServerConstants.java @@ -14,6 +14,8 @@ public class ServerConstants { private static String securePort, port; + private static String suffix = "cacert.local"; + public static void init(Properties conf) { securePort = port = ""; if ( !conf.getProperty("https.port").equals("443")) { @@ -26,6 +28,7 @@ public class ServerConstants { secureHostName = conf.getProperty("name.secure"); staticHostName = conf.getProperty("name.static"); apiHostName = conf.getProperty("name.api"); + suffix = conf.getProperty("name.suffix", conf.getProperty("name.www").substring(4)); } @@ -83,4 +86,8 @@ public class ServerConstants { return Integer.parseInt(port.substring(1, port.length())); } + public static String getSuffix() { + return suffix; + } + }