默认TTL设为64

This commit is contained in:
free will
2021-08-03 10:53:53 +08:00
parent bd4199d9c0
commit a0ef28e161
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -19,7 +19,11 @@ public class TTL implements IEncodingAble {
*/
private long ttl;
/**
* 默认TTL为64,即经过64跳路由器后被丢弃
*/
public TTL() {
this.ttl=64;
}
public TTL(long ttl){
+2 -2
View File
@@ -34,8 +34,8 @@ public class TestAPI {
// System.out.println(res);
// }
public static void main(String[] args){
String username="/fssASssJGXUa2ss";
String email="25SAawhqeDsissssahHk3s@163.com";
String username="/fsGXUa2ss";
String email="2hqeDsissssahHk3s@163.com";
int userID=1;
// 模拟客户端生成自己的公钥私钥
BC_KeyManager bc_keyManager=new BC_KeyManager();