This commit is contained in:
jysperm
2014-11-20 06:06:22 +08:00
parent fbc729ca3a
commit e3032af12f
8 changed files with 19 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ exports.registerServiceHook 'disable',
app.express.use '/plugin/shadowsocks', require './router'
if config.plugins.shadowsocks.monitor_cycle
if config.plugins.shadowsocks?.monitor_cycle
exports.registerHook 'app.started',
action: ->
setInterval shadowsocks.monitoring, config.plugins.shadowsocks.monitor_cycle

View File

@@ -6,7 +6,7 @@ supervisor = require '../supervisor/supervisor'
ShadowsocksPlugin = require './index'
BILLING_BUCKET = config.plugins.shadowsocks.billing_bucket
BILLING_BUCKET = config.plugins.shadowsocks?.billing_bucket ? 100 * 1024 * 1024
exports.initSupervisor = (callback) ->
supervisor.programsStatus (program_status) ->

View File

@@ -41,6 +41,7 @@
done err
it 'POST join_plan', (done) ->
@timeout 10000
agent.post '/billing/join_plan'
.send
csrf_token: csrf_token

View File

@@ -17,7 +17,10 @@
span.input-group-addon= t('method')
select.input-method.form-control(style='-webkit-appearance: none;')
for method in config.plugins.shadowsocks.available_ciphers
option= method
if account.pluggable.shadowsocks.method == method
option(selected='selected')= method
else
option= method
span.input-group-btn
button.btn.btn-default.action-switch-method(type='button')= t('common.change')