Skip to content

Commit 5eb1e0e

Browse files
Peter XiePeter Xie
authored andcommitted
v0.8.13
1 parent 196ddf1 commit 5eb1e0e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

app/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,13 @@ class localServer {
10141014
const config = require(configPath);
10151015
config.salt = Buffer.from(config.salt.data);
10161016
this.config = config;
1017-
this.config.version = this.version;
1017+
// update?
1018+
if (config.newVersion === this.version) {
1019+
this.config.version = this.version;
1020+
this.config.newVerReady = false;
1021+
this.config.newVersion = null;
1022+
}
10181023
this.config.serverPort = this.port;
1019-
this.config;
10201024
if (this.config.keypair && this.config.keypair.publicKeyID)
10211025
return Async.waterfall([
10221026
next => {

app/server.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,12 +1118,17 @@ export class localServer {
11181118
return this.config = InitConfig ( true, this.version, this.port )
11191119
}
11201120
try {
1121-
const config = require ( configPath )
1121+
const config: install_config = require ( configPath )
11221122
config.salt = Buffer.from ( config.salt.data )
11231123
this.config = config
1124-
this.config.version = this.version
1124+
// update?
1125+
if ( config.newVersion === this.version ) {
1126+
this.config.version = this.version
1127+
this.config.newVerReady = false
1128+
this.config.newVersion = null
1129+
}
11251130
this.config.serverPort = this.port
1126-
this.config
1131+
11271132
if ( this.config.keypair && this.config.keypair.publicKeyID )
11281133
return Async.waterfall ([
11291134
next => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qtgate",
3-
"version": "0.8.12",
3+
"version": "0.8.13",
44
"license": "MIT",
55
"description": "QTGate desktop client",
66
"scripts": {

0 commit comments

Comments
 (0)