From 6ee918313a5fa7851ad68cd03a094b515fd61ece Mon Sep 17 00:00:00 2001 From: talent-tan Date: Mon, 22 Jun 2020 19:00:01 +0800 Subject: [PATCH] =?UTF-8?q?Node.java=E6=B7=BB=E5=8A=A0ssl=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/src/main/java/org/tio/core/Node.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/core/src/main/java/org/tio/core/Node.java b/src/core/src/main/java/org/tio/core/Node.java index 89f7c8be..b9126e5c 100644 --- a/src/core/src/main/java/org/tio/core/Node.java +++ b/src/core/src/main/java/org/tio/core/Node.java @@ -205,6 +205,7 @@ recommend that a file or class name and description of purpose be included on public class Node implements Comparable { private String ip; private int port; + private Byte ssl = 1; public Node(String ip, int port) { super(); @@ -267,4 +268,18 @@ public String toString() { return builder.toString(); } + /** + * @return the ssl + */ + public Byte getSsl() { + return ssl; + } + + /** + * @param ssl the ssl to set + */ + public void setSsl(Byte ssl) { + this.ssl = ssl; + } + }