From: Felix Dörre Date: Tue, 8 Jul 2014 21:36:31 +0000 (+0200) Subject: Use correct server names for SNi. X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=e7d94e54252cbd7397c6732d49ce7ee5d9264e24;hp=3fcea04f8aeecdf2b8d4ef36498c65a4d271884b Use correct server names for SNi. --- diff --git a/src/org/cacert/gigi/Launcher.java b/src/org/cacert/gigi/Launcher.java index 87c215cc..3e87d42e 100644 --- a/src/org/cacert/gigi/Launcher.java +++ b/src/org/cacert/gigi/Launcher.java @@ -105,13 +105,17 @@ public class Launcher { if (sniServerName instanceof SNIHostName) { SNIHostName host = (SNIHostName) sniServerName; String hostname = host.getAsciiName(); - if (hostname.equals("www.cacert.local")) { + if (hostname.equals(ServerConstants + .getWwwHostName())) { e2 = sslContextFactory.newSSLEngine(); - } else if (hostname.equals("static.cacert.local")) { + } else if (hostname.equals(ServerConstants + .getStaticHostName())) { e2 = staticContextFactory.newSSLEngine(); - } else if (hostname.equals("secure.cacert.local")) { + } else if (hostname.equals(ServerConstants + .getSecureHostName())) { e2 = secureContextFactory.newSSLEngine(); - } else if (hostname.equals("api.cacert.local")) { + } else if (hostname.equals(ServerConstants + .getApiHostName())) { e2 = apiContextFactory.newSSLEngine(); } break;