File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff 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 => {
Original file line number Diff line number Diff 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 => {
Original file line number Diff line number Diff line change 11{
22 "name" : " qtgate" ,
3- "version" : " 0.8.12 " ,
3+ "version" : " 0.8.13 " ,
44 "license" : " MIT" ,
55 "description" : " QTGate desktop client" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments