mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
The variable maxNumClients was unused, while connectionsPerClient was used for spawning multiple proxyPairs. The former is a more appropriate name for the multiplexing behaviour we use it for. Multiplexing now just works thanks to implementing ticket #31310.
34 lines
707 B
JavaScript
34 lines
707 B
JavaScript
|
|
class Config {}
|
|
|
|
Config.prototype.brokerUrl = 'snowflake-broker.freehaven.net';
|
|
|
|
Config.prototype.relayAddr = {
|
|
host: 'snowflake.freehaven.net',
|
|
port: '443'
|
|
};
|
|
|
|
// Original non-wss relay:
|
|
// host: '192.81.135.242'
|
|
// port: 9902
|
|
Config.prototype.cookieName = "snowflake-allow";
|
|
|
|
// Bytes per second. Set to undefined to disable limit.
|
|
Config.prototype.rateLimitBytes = void 0;
|
|
|
|
Config.prototype.minRateLimit = 10 * 1024;
|
|
|
|
Config.prototype.rateLimitHistory = 5.0;
|
|
|
|
Config.prototype.defaultBrokerPollInterval = 300.0 * 1000;
|
|
|
|
Config.prototype.maxNumClients = 1;
|
|
|
|
// TODO: Different ICE servers.
|
|
Config.prototype.pcConfig = {
|
|
iceServers: [
|
|
{
|
|
urls: ['stun:stun.l.google.com:19302']
|
|
}
|
|
]
|
|
};
|