strapp.io hostname hardcoded
authorken <ken@mihrtec.com>
Fri, 23 Jun 2017 04:10:18 +0000 (21:10 -0700)
committerken <ken@mihrtec.com>
Fri, 23 Jun 2017 04:10:18 +0000 (21:10 -0700)
main.js

diff --git a/main.js b/main.js
index 4c03b60..9153f76 100644 (file)
--- a/main.js
+++ b/main.js
@@ -38,7 +38,7 @@ const https_router = https.createServer(https_router_opts, (request, response) =
       https_routes[ht_argv[0]] = new_route
     }).then(() => {
       let str = String(fs.readFileSync('remote-server.html'))
-      response.write(str.replace("$HOST",new_route.host.slice(7)).replace("$PORT",new_route.port))
+      response.write(str.replace("$HOST","wss://www.strapp.io").replace("$PORT",new_route.port))
       response.end()
     })
   }