mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-11-01 05:09:10 +00:00
Added the --local-host parameter to tunnel the traffic to other hosts
This commit is contained in:
1 parent
18ada0854a
commit
21df257d16
2 files changed
+9
-1
No files matched your search
@@ -11,12 +11,17 @@ var argv = require('optimist')
|
||||
.options('subdomain', {
|
||||
describe: 'request this subdomain'
|
||||
})
|
||||
.options('local-host', {
|
||||
describe: 'tunnel traffic to this host instead of localhost'
|
||||
})
|
||||
.default('local-host', 'localhost')
|
||||
.describe('port', 'internal http server port')
|
||||
.argv;
|
||||
|
||||
var opt = {
|
||||
host: argv.host,
|
||||
port: argv.port,
|
||||
local_host: argv['local-host'],
|
||||
subdomain: argv.subdomain,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user