mirror of
https://github.com/jlengrand/helidon.git
synced 2026-03-10 08:21:17 +00:00
Swapped ports in mutual TLS example (#2184)
Signed-off-by: David Kral <david.k.kral@oracle.com>
This commit is contained in:
@@ -52,11 +52,11 @@ public class ServerBuilderMain {
|
||||
static WebServer startServer(int unsecured, int secured) {
|
||||
SocketConfiguration socketConf = SocketConfiguration.builder()
|
||||
.name("secured")
|
||||
.port(unsecured)
|
||||
.port(secured)
|
||||
.tls(tlsConfig())
|
||||
.build();
|
||||
WebServer webServer = WebServer.builder()
|
||||
.port(secured)
|
||||
.port(unsecured)
|
||||
.routing(createPlainRouting())
|
||||
.addSocket(socketConf, createMtlsRouting())
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user