'use strict';
var defaultConfig = {
  // livenet or testnet
  networkName: 'testnet',

  // wallet limits
  limits: {
    totalCopayers: 12,
    mPlusN: 100
  },

  // network layer (PeerJS) config
  network: {
    // Use this to run your own local PeerJS server
    // with params: ./peerjs  -p 10009  -k '6d6d751ea61e26f2'
    /*
    key: '6d6d751ea61e26f2',
    host: 'localhost',
    port: 10009,
    path: '/',
    */

    // Use this to connect to bitpay's PeerJS server
    key: 'satoshirocks', 
    host: '162.242.219.26',
    port: 10000,
    path: '/',

    // other PeerJS config
    maxPeers: 15,
    debug: 2,

    // Network encryption config
    sjclParams: {
      salt: 'mjuBtGybi/4=', // choose your own salt (base64)
      iter: 1000,
      mode: 'ccm',
      ts: parseInt(64),
    },

    // PeerJS internal config object 
    config: {
      'iceServers': [
        // Pass in STUN and TURN servers for maximum network compatibility
        // {
        //   url: 'stun:162.242.219.26'
        // }, {
        //   url: 'turn:162.242.219.26',
        //   username: 'bitcore',
        //   credential: 'bitcore',
        // }
        {
          url: 'stun:stun.l.google.com:19302'
        }, {
          url: 'stun:stun1.l.google.com:19302'
        }, {
          url: 'stun:stun2.l.google.com:19302'
        }, {
          url: 'stun:stun3.l.google.com:19302'
        }, {
          url: 'stun:stun4.l.google.com:19302'
        }, {
          url: 'stun:stunserver.org'
        }
        // // Options fot TURN servers with p2p communications are not possible.
        // {
        //   url: 'turn:numb.viagenie.ca',
        //   credential: 'muazkh',
        //   username: 'webrtc@live.com'
        // }, {
        //   url: 'turn:192.158.29.39:3478?transport=udp',
        //   credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
        //   username: '28224511:1379330808'
        // }, {
        //   url: 'turn:192.158.29.39:3478?transport=tcp',
        //   credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
        //   username: '28224511:1379330808'
        // }
      ]
    }
  },

  // wallet default config
  wallet: {
    requiredCopayers: 2,
    totalCopayers: 3,
    spendUnconfirmed: 1,
    verbose: 1,
    reconnectDelay: 5000,
  },

  // blockchain service API config
  blockchain: {
    host: 'test.insight.is',
    port: 80,
    retryDelay: 1000,
  },
  // socket service API config
  socket: {
    host: 'test.insight.is',
    port: 80,
    // will duplicate itself after each try
    reconnectDelay: 500,
  },

  // local encryption/security config
  passphrase: {
    iterations: 100,
    storageSalt: 'mjuBtGybi/4=', 
  },

  // theme list
  themes: ['default'],
  disableVideo: 1,
  verbose: 1,
};

@@ -946,35 +946,32 @@
 tibility%0A       
- //
  %7B%0A        //   
@@ -956,35 +956,32 @@
        %7B%0A       
- //
    url: 'stun:16
@@ -993,35 +993,32 @@
 .219.26'%0A       
- //
  %7D, %7B%0A        //
@@ -1006,35 +1006,32 @@
     %7D, %7B%0A       
- //
    url: 'turn:16
@@ -1044,35 +1044,32 @@
 219.26',%0A       
- //
    username: 'bi
@@ -1075,35 +1075,32 @@
 itcore',%0A       
- //
    credential: '
@@ -1108,35 +1108,32 @@
 itcore',%0A       
- //
  %7D%0A        %7B%0A   
@@ -1118,32 +1118,35 @@
        %7D%0A       
+ //
  %7B%0A          url
@@ -1131,32 +1131,35 @@
     // %7B%0A       
+ //
    url: 'stun:st
@@ -1180,32 +1180,35 @@
 m:19302'%0A       
+ //
  %7D, %7B%0A          
@@ -1196,32 +1196,35 @@
  // %7D, %7B%0A       
+ //
    url: 'stun:st
@@ -1246,32 +1246,35 @@
 m:19302'%0A       
+ //
  %7D, %7B%0A          
@@ -1263,34 +1263,37 @@
 // %7D, %7B%0A        
+//
   
+ 
 url: 'stun:stun2
@@ -1312,32 +1312,35 @@
 m:19302'%0A       
+ //
  %7D, %7B%0A          
@@ -1328,32 +1328,35 @@
  // %7D, %7B%0A       
+ //
    url: 'stun:st
@@ -1378,32 +1378,35 @@
 m:19302'%0A       
+ //
  %7D, %7B%0A          
@@ -1394,32 +1394,35 @@
  // %7D, %7B%0A       
+ //
    url: 'stun:st
@@ -1444,32 +1444,35 @@
 m:19302'%0A       
+ //
  %7D, %7B%0A          
@@ -1460,32 +1460,35 @@
  // %7D, %7B%0A       
+ //
    url: 'stun:st
@@ -1500,32 +1500,35 @@
 ver.org'%0A       
+ //
  %7D%0A        // //

update to bitcore stun servers