From 63e4c7255d5873fa4b19eafc236d3abaedb87da2 Mon Sep 17 00:00:00 2001 From: Maximilien LEDOUX Date: Wed, 9 Mar 2022 12:11:14 +0100 Subject: [PATCH] =?UTF-8?q?SSL=20:=20termin=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domains/server/UnicastServerListener.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java b/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java index 39fc2ab..a12b5d0 100644 --- a/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java +++ b/app/src/main/java/lightcontainer/domains/server/UnicastServerListener.java @@ -41,12 +41,9 @@ public class UnicastServerListener implements Runnable { public void run() { try { // Allow looping in the loop and create a socket server - SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory - .getDefault(); - SSLServerSocket sslserversocket = (SSLServerSocket) sslserversocketfactory - .createServerSocket(this.server_port); + SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); + this.server = sslserversocketfactory.createServerSocket(this.server_port); this.server_run = true; - this.server = sslserversocket; while (this.server_run) { // Accepting connection requests (blocking) Socket client = this.server.accept();