config.js 741 B

12345678910111213141516171819202122232425262728293031323334353637
  1. class Config {}
  2. Config.prototype.brokerUrl = 'snowflake-broker.freehaven.net';
  3. Config.prototype.relayAddr = {
  4. host: 'snowflake.freehaven.net',
  5. port: '443'
  6. };
  7. // Original non-wss relay:
  8. // host: '192.81.135.242'
  9. // port: 9902
  10. Config.prototype.cookieName = "snowflake-allow";
  11. // Bytes per second. Set to undefined to disable limit.
  12. Config.prototype.rateLimitBytes = void 0;
  13. Config.prototype.minRateLimit = 10 * 1024;
  14. Config.prototype.rateLimitHistory = 5.0;
  15. Config.prototype.defaultBrokerPollInterval = 300.0 * 1000;
  16. Config.prototype.maxNumClients = 1;
  17. Config.prototype.proxyType = "";
  18. // TODO: Different ICE servers.
  19. Config.prototype.pcConfig = {
  20. iceServers: [
  21. {
  22. urls: ['stun:stun.l.google.com:19302']
  23. }
  24. ]
  25. };