-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
154 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
http-server/src/main/java/com/zkdcloud/proxy/http/ServerStart.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...loud/proxy/http/util/ServerConfigure.java → ...ud/proxy/http/config/ServerConfigure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.zkdcloud.proxy.http.util; | ||
package com.zkdcloud.proxy.http.config; | ||
|
||
/** | ||
* server config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
socks5-server/src/main/java/com/zkdcloud/proxy/socks5/config/ServerConfigure.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.zkdcloud.proxy.socks5.config; | ||
|
||
/** | ||
* server config | ||
* | ||
* @author zk | ||
* @since 2019/1/30 | ||
*/ | ||
public class ServerConfigure { | ||
private short port; | ||
private short numberWorkers; | ||
private long secondsClientIdle; | ||
private long secondsRemoteIdle; | ||
|
||
public short getPort() { | ||
return port; | ||
} | ||
|
||
public void setPort(short port) { | ||
this.port = port; | ||
} | ||
|
||
public short getNumberWorkers() { | ||
return numberWorkers; | ||
} | ||
|
||
public void setNumberWorkers(short numberWorkers) { | ||
this.numberWorkers = numberWorkers; | ||
} | ||
|
||
public long getSecondsClientIdle() { | ||
return secondsClientIdle; | ||
} | ||
|
||
public void setSecondsClientIdle(long secondsClientIdle) { | ||
this.secondsClientIdle = secondsClientIdle; | ||
} | ||
|
||
public long getSecondsRemoteIdle() { | ||
return secondsRemoteIdle; | ||
} | ||
|
||
public void setSecondsRemoteIdle(long secondsRemoteIdle) { | ||
this.secondsRemoteIdle = secondsRemoteIdle; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters