main: always enable osc input (default port = http port)
This commit is contained in:
parent
f10f496047
commit
42f4afca7e
4 changed files with 9 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ require('vmodule')('serialport', {}, {global: true})
|
|||
var osc = require('osc'),
|
||||
ipc = require('./server').ipc,
|
||||
settings = require('./settings'),
|
||||
oscInPort = settings.read('oscInPort'),
|
||||
oscInPort = settings.read('oscInPort') || settings.read('httpPort'),
|
||||
debug = settings.read('debug'),
|
||||
vm = require('vm'),
|
||||
fs = require('fs')
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ var options = {
|
|||
true : 'Port must be an integer >= 1024'
|
||||
}
|
||||
},
|
||||
'o':{alias:'osc-port',type:'number',describe:'osc input port',
|
||||
'o':{alias:'osc-port',type:'number',describe:'osc input port (default to --port)',
|
||||
check: (o)=>{
|
||||
return (!isNaN(o) && o > 1023 && parseInt(o)===o) ?
|
||||
true : 'Port must be an integer >= 1024'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue