bin: remove blank lines of cli-init.js
This commit is contained in:
parent
e5375a32ec
commit
034e3b604f
@ -19,33 +19,25 @@ function random(array, len) {
|
||||
const key = random('abcdefghjklmnpqrstuvwxyz23456789!@#$%^&*()_+<>?:|{}-=[];,./ABCDEFGHJKLMNPQRSTUVWXYZ', 16);
|
||||
|
||||
const clientJs = `module.exports = {
|
||||
|
||||
// local hostname or ip address
|
||||
// For client, act as a Socks5/Socks4/HTTP server.
|
||||
// For server, act as a blinksocks server.
|
||||
host: "localhost",
|
||||
|
||||
// local port to be listen on
|
||||
port: 1080,
|
||||
|
||||
// a list of blinksocks/shadowsocks server(client side only)
|
||||
servers: [
|
||||
{
|
||||
// allow to use this server or not
|
||||
enabled: true,
|
||||
|
||||
// the transport layer, "tcp" or "udp"
|
||||
transport: 'tcp',
|
||||
|
||||
transport: "tcp",
|
||||
// server host name or ip address
|
||||
host: "example.com",
|
||||
|
||||
// server port
|
||||
port: 5678,
|
||||
|
||||
port: 4321,
|
||||
// a secret key for encryption/description
|
||||
key: "${key}",
|
||||
|
||||
// presets to process data stream
|
||||
// DO NOT modify the first preset if you don't know what it is.
|
||||
// Take care the order of those presets, read the docs before changing them.
|
||||
@ -53,7 +45,6 @@ const clientJs = `module.exports = {
|
||||
{
|
||||
// preset name
|
||||
name: "ss-base",
|
||||
|
||||
// preset parameters
|
||||
params: {}
|
||||
},
|
||||
@ -67,41 +58,32 @@ const clientJs = `module.exports = {
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
// an ip list of DNS server
|
||||
dns: [],
|
||||
|
||||
// DNS cache expiration time in seconds
|
||||
dns_expire: 3600,
|
||||
// close inactive connection after timeout seconds
|
||||
timeout: 600,
|
||||
|
||||
// collect performance statistics
|
||||
profile: false,
|
||||
|
||||
// hot-reload when this file changed
|
||||
watch: true,
|
||||
|
||||
// log at the level, "error", "warn", "info", "verbose", "debug" or "silly"
|
||||
log_level: "info"
|
||||
|
||||
};
|
||||
`;
|
||||
|
||||
const serverJs = `module.exports = {
|
||||
|
||||
// local hostname or ip address
|
||||
// For client, act as a Socks5/Socks4/HTTP server.
|
||||
// For server, act as a blinksocks server.
|
||||
host: "0.0.0.0",
|
||||
|
||||
// local port to be listen on
|
||||
port: 5678,
|
||||
|
||||
port: 4321,
|
||||
// the transport layer, "tcp" or "udp"
|
||||
transport: 'tcp',
|
||||
|
||||
transport: "tcp",
|
||||
// a secret key for encryption/description
|
||||
key: "${key}",
|
||||
|
||||
// presets to process data stream
|
||||
// DO NOT modify the first preset if you don't know what it is.
|
||||
// Take care the order of those presets, read the docs before changing them.
|
||||
@ -109,7 +91,6 @@ const serverJs = `module.exports = {
|
||||
{
|
||||
// preset name
|
||||
name: "ss-base",
|
||||
|
||||
// preset parameters
|
||||
params: {}
|
||||
},
|
||||
@ -121,26 +102,21 @@ const serverJs = `module.exports = {
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
// an ip list of DNS server
|
||||
dns: [],
|
||||
|
||||
// DNS cache expiration time in seconds
|
||||
dns_expire: 3600,
|
||||
// redirect data to here once preset fail to process(server side only)
|
||||
// Should be formed with "host:port".
|
||||
redirect: "",
|
||||
|
||||
// close inactive connection after timeout seconds
|
||||
timeout: 600,
|
||||
|
||||
// collect performance statistics
|
||||
profile: false,
|
||||
|
||||
// hot-reload when this file changed
|
||||
watch: true,
|
||||
|
||||
// log at the level, "error", "warn", "info", "verbose", "debug" or "silly"
|
||||
log_level: "info"
|
||||
|
||||
};
|
||||
`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user