Skip to content

Commit

Permalink
Node.java添加ssl属性
Browse files Browse the repository at this point in the history
  • Loading branch information
tywo45 committed Jun 22, 2020
1 parent 5b1a2b7 commit 6ee9183
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/core/src/main/java/org/tio/core/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ recommend that a file or class name and description of purpose be included on
public class Node implements Comparable<Node> {
private String ip;
private int port;
private Byte ssl = 1;

public Node(String ip, int port) {
super();
Expand Down Expand Up @@ -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;
}

}

0 comments on commit 6ee9183

Please sign in to comment.