X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclub%2Fwpia%2Fgigi%2Futil%2FServerConstants.java;h=8e985fa9455acfb83212421712a994c3bf8c4740;hb=d71624703243c182beb0f946ebc582e0366a4686;hp=d3901e8d898563cd45afa6a87c1f5dd7238859d1;hpb=bccd4cc0dba0f89aa045b113bac46eb8cc1dab4e;p=gigi.git diff --git a/src/club/wpia/gigi/util/ServerConstants.java b/src/club/wpia/gigi/util/ServerConstants.java index d3901e8d..8e985fa9 100644 --- a/src/club/wpia/gigi/util/ServerConstants.java +++ b/src/club/wpia/gigi/util/ServerConstants.java @@ -74,6 +74,14 @@ public class ServerConstants { return apiHostName + securePort; } + public static String getLinkHostNamePort() { + return "link." + getSuffix() + port; + } + + public static String getLinkHostNamePortSecure() { + return "link." + getSuffix() + securePort; + } + public static int getSecurePort() { if (secureBindPort != null && !secureBindPort.isEmpty()) { if (secureBindPort.equals("stdin")) { @@ -107,19 +115,19 @@ public class ServerConstants { } public static String getSupportMailAddress() { - return "support@" + ServerConstants.getWwwHostName().replaceFirst("^www\\.", ""); + return "support@" + getSuffix(); } public static String getBoardMailAddress() { - return "board@" + ServerConstants.getWwwHostName().replaceFirst("^www\\.", ""); + return "board@" + getSuffix(); } public static String getQuizMailAddress() { - return "quiz@" + ServerConstants.getWwwHostName().replaceFirst("^www\\.", ""); + return "quiz@" + getSuffix(); } public static String getQuizAdminMailAddress() { - return "quiz-admin@" + ServerConstants.getWwwHostName().replaceFirst("^www\\.", ""); + return "quiz-admin@" + getSuffix(); } }