diff --git a/CHANGELOG.md b/CHANGELOG.md index 567fa10c..23c98d92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/main/osc.js b/app/main/osc.js index 047be4a3..6b40da7e 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -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') diff --git a/app/main/settings.js b/app/main/settings.js index 8c59ef17..58e85779 100644 --- a/app/main/settings.js +++ b/app/main/settings.js @@ -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' diff --git a/resources/docs/getting-started.md b/resources/docs/getting-started.md index 26a14bc5..d6852843 100644 --- a/resources/docs/getting-started.md +++ b/resources/docs/getting-started.md @@ -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