diff options
| -rw-r--r-- | app/lib/backend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index 095f1a9eba..73be82df75 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -108,7 +108,7 @@ export default class Backend extends EventEmitter { refreshIp() { let ip = []; for(let i = 0; i < 4; i++) { - ip.push(parseInt(Math.random() * 254)); + ip.push(parseInt(Math.random() * 253 + 1)); } this.emit(EventType.updatedIp, ip.join('.')); } |
