fix bad if

This commit is contained in:
AJ ONeal 2018-06-11 15:15:07 -06:00
parent 23c40878e0
commit e60f1fa14f
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ function serveControls() {
if (/status/.test(opts.path)) {
res.end(
'{"status":' + (state.config.disable ? 'disabled' : 'enabled')
+ ',"ready":' + (state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false'
+ ',"ready":' + ((state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false')
+ '}');
return;
}