main: always enable osc input (default port = http port)

This commit is contained in:
jean-emmanuel 2016-12-15 13:56:13 +01:00
parent f10f496047
commit 42f4afca7e
4 changed files with 9 additions and 4 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.13.2
- main
- osc input port (`-o`) is now set to the http port (`-p`) by default
## 0.13.1
- bug fixes

View file

@ -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')

View file

@ -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'

View file

@ -10,14 +10,14 @@ Prebuilt binaries for Linux, Windows and OS X can be found on the [release](http
Below are the available command-line switches. Note that when running without any command-line switch (ie from a file browser), a launcher window will spawn to help setting them.
```
```bash
Options:
-s, --sync synchronized hosts (ip:port pairs) (osc messages sent by widgets will also be sent to these targets)
-l, --load session file to load
-b, --blank load a blank session and start the editor
-c, --custom-module custom module file to load
-p, --port http port of the server (default to 8080)
-o, --osc-port osc input port
-o, --osc-port osc input port (default to --port)
-d, --debug log received osc messages in the console
-n, --no-gui disable default gui
-g, --gui-only app server's url. If true, local port (--port) is used