@@ -4,13 +4,13 @@ var lcp = require('../lib/index.js');
44var commandLineArgs = require ( 'command-line-args' ) ;
55
66var optionDefinitions = [
7- { name : 'port ' , alias : 'p' , type : Number , defaultValue : 8010 } ,
7+ { name : 'proxyPort ' , alias : 'p' , type : Number , defaultValue : 8010 } ,
88 {
99 name : 'proxyPartial' ,
1010 type : String ,
1111 defaultValue : '/proxy'
1212 } ,
13- { name : 'proxyUrl ' , type : String , defaultValue : 'http://localhost: 9000' } ,
13+ { name : 'port ' , type : String , defaultValue : '9000' } ,
1414 { name : 'credentials' , type : Boolean , defaultValue : false } ,
1515 { name : 'origin' , type : String , defaultValue : '*' } ,
1616 { name : 'webhookStore' , type : String }
2121 if ( ! options . webhookStore ) {
2222 throw new Error ( '--webhookStore is required. example --webhookStore https://claimyourdomain.webhook.store' ) ;
2323 }
24- lcp . startProxy ( options . port , options . proxyUrl , options . proxyPartial , options . credentials , options . origin , options . webhookStore ) ;
24+ lcp . startProxy ( options . proxyPort , 'http://localhost:' + options . port , options . proxyPartial , options . credentials , options . origin , options . webhookStore ) ;
2525} catch ( error ) {
2626 console . error ( error ) ;
2727}
0 commit comments