@@ -23,21 +23,21 @@ public class ReverseTcpProxy {
23
23
24
24
private static final Logger log = LoggerFactory .getLogger (ReverseTcpProxy .class );
25
25
26
- private static final char [] ID_CHARACTERS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" .toCharArray ();
26
+ protected static final char [] ID_CHARACTERS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" .toCharArray ();
27
27
28
- private String sourceHost = "0.0.0.0" ;
28
+ protected String sourceHost = "0.0.0.0" ;
29
29
30
- private int sourcePort = 999 ;
30
+ protected int sourcePort = 999 ;
31
31
32
- private final Handler <NetSocket > connectHandler ;
33
- private final NetServer netServer ;
34
- private final NetClient netClient ;
35
- private final String targetHost ;
36
- private final int targetPort ;
37
- private final String name ;
32
+ protected final Handler <NetSocket > connectHandler ;
33
+ protected final NetServer netServer ;
34
+ protected final NetClient netClient ;
35
+ protected final String targetHost ;
36
+ protected final int targetPort ;
37
+ protected final String name ;
38
38
39
- private ReverseTcpProxy (NetServer netServer , NetClient netClient ,
40
- String targetHost , int targetPort , String name ) {
39
+ protected ReverseTcpProxy (NetServer netServer , NetClient netClient ,
40
+ String targetHost , int targetPort , String name ) {
41
41
this .name = name ;
42
42
this .targetHost = targetHost ;
43
43
this .targetPort = targetPort ;
@@ -133,7 +133,7 @@ public ReverseTcpProxy host(String host) {
133
133
}
134
134
135
135
136
- private static String generateName () {
136
+ protected static String generateName () {
137
137
final String prefix = "ReverseTcpProxy-" ;
138
138
try {
139
139
// 池号对于虚拟机来说是全局的,以避免在类加载器范围的环境中池号重叠
0 commit comments