commit
9cc79ed75d
|
@ -337,7 +337,8 @@ public class ClientGlobal {
|
|||
InetSocketAddress[] trackerAddresses = g_tracker_group.tracker_servers;
|
||||
for (InetSocketAddress inetSocketAddress : trackerAddresses) {
|
||||
if(trackerServers.length() > 0) trackerServers += ",";
|
||||
trackerServers += inetSocketAddress.toString().substring(1);
|
||||
String address = inetSocketAddress.toString();
|
||||
trackerServers += address.startsWith("/") ? address.substring(1) : address;
|
||||
}
|
||||
}
|
||||
return "{"
|
||||
|
|
|
@ -21,6 +21,9 @@ public class ClientGlobalTests {
|
|||
ClientGlobal.initByProperties(props);
|
||||
System.out.println("ClientGlobal.configInfo(): " + ClientGlobal.configInfo());
|
||||
|
||||
String trackerServer = "www.baidu.com:22122";
|
||||
ClientGlobal.initByTrackers(trackerServer);
|
||||
System.out.println("Host >>> ClientGlobal.configInfo() : " + ClientGlobal.configInfo());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue