aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-06-16 14:29:35 +0900
committerDevine Lu Linvega <[email protected]>2019-06-16 14:29:35 +0900
commit894f49236f5c2f66cbc365586907c310be6279ed (patch)
tree594f3cc65af63d9fb149496fbe206f84609b69f9
parent3feaa524e49c9960c4d6dfef725e5243c3bafffa (diff)
downloadOrca-894f49236f5c2f66cbc365586907c310be6279ed.tar.gz
Orca-894f49236f5c2f66cbc365586907c310be6279ed.zip
Point to .local addresses
-rw-r--r--desktop/core/io.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/core/io.js b/desktop/core/io.js
index 8544065..96cacb1 100644
--- a/desktop/core/io.js
+++ b/desktop/core/io.js
@@ -46,7 +46,7 @@ export default function IO (terminal) {
}
this.setIp = function (addr = '127.0.0.1') {
- if (validateIP(addr) !== true) { console.warn('IO', 'Invalid IP'); return }
+ if (validateIP(addr) !== true && addr.indexOf('.local') === -1) { console.warn('IO', 'Invalid IP'); return }
this.ip = addr
console.log('IO', 'Set target IP to ' + this.ip)
this.osc.setup()