added option to specify port range for client ports
This commit is contained in:
@@ -38,9 +38,13 @@ class ClientManager {
|
||||
}
|
||||
|
||||
const maxSockets = this.opt.max_tcp_sockets;
|
||||
const client_min_port_range = this.opt.client_min_port_range;
|
||||
const client_max_port_range = this.opt.client_max_port_range;
|
||||
const agent = new TunnelAgent({
|
||||
clientId: id,
|
||||
maxSockets: 10,
|
||||
maxSockets: maxSockets,
|
||||
client_min_port_range: client_min_port_range,
|
||||
client_max_port_range: client_max_port_range
|
||||
});
|
||||
|
||||
const client = new Client({
|
||||
|
||||
Reference in New Issue
Block a user