added option to specify port range for client ports

This commit is contained in:
Jonathan Chan
2019-01-21 22:59:01 -06:00
parent d9fca62c17
commit ee77d6a41b
5 changed files with 56 additions and 11 deletions
+5 -1
View File
@@ -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({