From 967d9fdfbb3d151cb8ffc4a889cd0b4a788378d3 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 22 May 2016 11:23:08 +0800 Subject: [PATCH] fix bug --- app/scripts/services/ariaNgSettingService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/services/ariaNgSettingService.js b/app/scripts/services/ariaNgSettingService.js index 6b6c6a0..acb871d 100644 --- a/app/scripts/services/ariaNgSettingService.js +++ b/app/scripts/services/ariaNgSettingService.js @@ -75,13 +75,13 @@ setOption('rpcHost', value); }, setRpcPort: function (value) { - setOption('rpcPort', value); + setOption('rpcPort', Math.max(parseInt(value), 0)); }, getProtocol: function () { return getOption('protocol'); }, setProtocol: function (value) { - setOption('protocol', Math.max(parseInt(value), 0)); + setOption('protocol', value); }, getGlobalStatRefreshInterval: function () { return getOption('globalStatRefreshInterval');