You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.elkm1/src/main/java/org/openhab/binding/elkm1/internal/elk/ElkAlarmConnection.java
+10-1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
importjavax.net.ssl.HandshakeCompletedEvent;
36
36
importjavax.net.ssl.HandshakeCompletedListener;
37
37
importjavax.net.ssl.SSLContext;
38
+
importjavax.net.ssl.SSLException;
38
39
importjavax.net.ssl.SSLSession;
39
40
importjavax.net.ssl.SSLSocket;
40
41
importjavax.net.ssl.X509TrustManager;
@@ -175,6 +176,10 @@ public boolean sslLogin() {
175
176
} catch (UnknownHostExceptione) {
176
177
logger.error("Unable to open connection to Elk alarm: {}:{}", config.host, config.port, e);
177
178
returnfalse;
179
+
} catch (SSLExceptione) {
180
+
logger.error("Unable to open connection to Elk alarm: {}:{}. Must use secure Elk port.", config.host,
181
+
config.port, e);
182
+
returnfalse;
178
183
} catch (IOExceptione) {
179
184
logger.error("Unable to open connection to Elk alarm: {}:{}", config.host, config.port, e);
180
185
returnfalse;
@@ -276,8 +281,12 @@ public void run() {
276
281
} catch (IOExceptione) {
277
282
if (e.getMessage().equals("Socket closed")) {
278
283
logger.error("Error reading from Elk alarm. Socket Closed. {}:{}", config.host, config.port);
284
+
return;
279
285
} else {
280
-
logger.error("Error reading from Elk alarm: {}:{}", config.host, config.port, e);
286
+
logger.error(
287
+
"Error reading from Elk alarm: {}:{}. Check hostname/address and secure/non-secure port.",
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.elkm1/src/main/java/org/openhab/binding/elkm1/internal/handler/ElkM1BridgeHandler.java
+19-7
Original file line number
Diff line number
Diff line change
@@ -125,20 +125,20 @@ public void removeListener(ElkM1HandlerListener listener) {
0 commit comments