local server: use /websocket/ path always

This commit is contained in:
Martin Schröder 2016-10-04 21:43:50 +02:00
parent 845105ae6f
commit 23be3b622a

View File

@ -27,7 +27,7 @@ if (fs.existsSync("juci-local-server.config")){
for(var i = 0; i < process.argv.length; i++){
switch(process.argv[i]){
//case "--host": config.ubus_uri = "ws://"+process.argv[++i]+"/websocket/"; break;
case "--host": config.ubus_uri = "ws://"+process.argv[++i]+":5303"; break;
case "--host": config.ubus_uri = "ws://"+process.argv[++i]+"/websocket/"; break;
case "--port": config.port = parseInt(process.argv[++i]); break;
case "--url": config.ubus_uri = process.argv[++i]; break;
};