chore(config.js): default protocol can be "none"
This commit is contained in:
parent
b0d4660c9a
commit
618f93a2e4
6
bin/bootstrap.js
vendored
6
bin/bootstrap.js
vendored
@ -18,13 +18,13 @@ const options = [
|
||||
['--frame-params [crypto-params]', 'parameters for frame preset, default: \'\'', ''],
|
||||
['--crypto [crypto]', 'a preset used in crypto middleware, default: \'\'', ''],
|
||||
['--crypto-params [crypto-params]', 'parameters for crypto, default: \'aes-256-cfb\'', 'aes-256-cfb'],
|
||||
['--protocol [protocol]', 'a preset used in protocol middleware, default: \'aead\'', 'aead'],
|
||||
['--protocol-params [protocol-params]', 'parameters for protocol, default: \'aes-256-cbc,sha256\'', 'aes-256-cbc,sha256'],
|
||||
['--protocol [protocol]', 'a preset used in protocol middleware, default: \'ss-aead\'', 'ss-aead'],
|
||||
['--protocol-params [protocol-params]', 'parameters for protocol, default: \'aes-256-gcm,ss-subkey\'', 'aes-256-gcm,ss-subkey'],
|
||||
['--obfs [obfs]', 'a preset used in obfs middleware, default: \'\'', ''],
|
||||
['--obfs-params [obfs-params]', 'parameters for obfs, default: \'\'', ''],
|
||||
['--log-level [log-level]', 'log level, default: \'silly\'', 'silly'],
|
||||
['-q, --quiet', 'force log level to \'error\''],
|
||||
['--profile', 'collect performance statistics, store at blinksocks.profile.log when exit']
|
||||
['--profile', 'generate performance statistics, store at blinksocks.profile.log once exit']
|
||||
];
|
||||
|
||||
const examples = `
|
||||
|
File diff suppressed because one or more lines are too long
@ -136,7 +136,7 @@ export class Config {
|
||||
throw Error('\'protocol_params\' must be a string');
|
||||
}
|
||||
|
||||
this.protocol = json.protocol || 'aead';
|
||||
this.protocol = json.protocol || 'none';
|
||||
this.protocol_params = json.protocol_params;
|
||||
|
||||
// obfs & obfs_params
|
||||
|
Loading…
Reference in New Issue
Block a user