sdp offer from client is incorrect somehow
[henge/kiak.git] / opts.js
diff --git a/opts.js b/opts.js
index 25332b0..5767cf6 100644 (file)
--- a/opts.js
+++ b/opts.js
@@ -42,13 +42,13 @@ exports = require('minimist')(process.argv.slice(2), {
  */
 exports['defaults'] = {
   config:      '/etc/strapp.conf:~/.strapp/strapp.conf:./strapp.conf',
-  'client-js': './client.js',
-  'host-js':   './host.js',
+  'client-js': './client-test.js',
+  'host-js':   './host-test.js',
   tls:         true,
   'ca-cert':   '../certs/cert.pem',
   'ca-key':    '../certs/key.pem',
   port:        2443,
-  index:       './www/index.html',
+  index:       './index.html',
   bind:        'www:./www',
   electron:    undefined,
   dedicated:   undefined,
@@ -97,7 +97,7 @@ exports['bind'].replace(/\s/g,'').split(',').forEach((kvp) => {
   kv[1] = path.resolve(kv[1])
   if (fs.existsSync(kv[1])) {
     if (kv.length == 2 && /^[-_.A-Za-z0-9]/g.test(kv[0]))
-      exports['bindings'][kv[0]] = kv[1]
+      exports['bindings'][kv[0]] = path.normalize(kv[1])
     else
       console.log(`WARN: Invalid binding: ${kvp}`)
   }