]> WPIA git - gigi.git/commitdiff
Use correct server names for SNi.
authorFelix Dörre <felix@dogcraft.de>
Tue, 8 Jul 2014 21:36:31 +0000 (23:36 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 8 Jul 2014 21:36:31 +0000 (23:36 +0200)
src/org/cacert/gigi/Launcher.java

index 87c215cc3b87d0b31084e1f51f9c051c5aa21040..3e87d42e2dfe4bab07b9a29fd232725bde26263b 100644 (file)
@@ -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;