transform Host header when local-host is defined explicitly

This commit is contained in:
Tymoteusz Paszun
2014-05-09 15:07:38 +02:00
parent 8768329fdd
commit 828cb2afcb
3 changed files with 53 additions and 8 deletions

View File

@@ -11,12 +11,11 @@ var argv = require('optimist')
describe: 'request this subdomain'
})
.options('local-host', {
describe: 'tunnel traffic to this host instead of localhost'
describe: 'tunnel traffic to this host instead of localhost, override Host header to this host'
})
.options('version', {
describe: 'print version and exit'
})
.default('local-host', 'localhost')
.describe('port', 'internal http server port')
.argv;