Add a range option to server to specify specific port client attribution
This commit is contained in:
@@ -31,6 +31,10 @@ const argv = optimist
|
||||
default: 10,
|
||||
describe: 'maximum number of tcp sockets each client is allowed to establish at one time (the tunnels)'
|
||||
})
|
||||
.options('range', {
|
||||
default: null,
|
||||
describe: 'will bind incoming connections only on ports in range xxx:xxxx'
|
||||
})
|
||||
.argv;
|
||||
|
||||
if (argv.help) {
|
||||
@@ -42,6 +46,7 @@ const server = CreateServer({
|
||||
max_tcp_sockets: argv['max-sockets'],
|
||||
secure: argv.secure,
|
||||
domain: argv.domain,
|
||||
range: argv.range,
|
||||
});
|
||||
|
||||
server.listen(argv.port, argv.address, () => {
|
||||
|
||||
Reference in New Issue
Block a user