Update proxy config to take proxy type

This allows badge and standalone proxies to tell the broker what proxy
type they are.
This commit is contained in:
Cecylia Bocovich 2019-11-20 13:09:11 -05:00
parent 7277bb37cd
commit 8ab81fc6cd
7 changed files with 30 additions and 13 deletions

View file

@ -170,10 +170,11 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
}
config = new Config;
config.proxyType = "badge";
if ('off' !== query.get('ratelimit')) {
config.rateLimitBytes = Params.getByteCount(query, 'ratelimit', config.rateLimitBytes);
}
broker = new Broker(config.brokerUrl);
broker = new Broker(config);
snowflake = new Snowflake(config, ui, broker);
log('== snowflake proxy ==');
update();