Skip to content

Commit

Permalink
v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CoNETProject committed Nov 29, 2019
1 parent bd930b0 commit 70aafa0
Show file tree
Hide file tree
Showing 14 changed files with 174 additions and 147 deletions.
8 changes: 7 additions & 1 deletion app/localWebServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,17 @@ class localServer {
console.log(`active key success! \n[${key}]`);
this.keyPair.publicKey = this.config.keypair.publicKey = key;
this.keyPair.verified = this.config.keypair.verified = true;
this.imapConnectData.sendToQTGate = true;
_callBack();
Tool.saveEncryptoData(Tool.imapDataFileName1, this.imapConnectData, this.config, this.savedPasswrod, err => {
if (err) {
saveLog(`Tool.saveConfig return Error: [${err.message}]`);
}
});
return Tool.saveConfig(this.config, err => {
if (err) {
saveLog(`Tool.saveConfig return Error: [${err.message}]`);
}
_callBack();
});
}
});
Expand Down
16 changes: 12 additions & 4 deletions app/localWebServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ export default class localServer {
}
if ( !this.imapConnectData.confirmRisk ) {
this.imapConnectData.confirmRisk = true
return Tool.saveEncryptoData ( Tool.imapDataFileName1,this.imapConnectData, this.config, this.savedPasswrod, err => {

return Tool.saveEncryptoData ( Tool.imapDataFileName1, this.imapConnectData, this.config, this.savedPasswrod, err => {
return this.tryConnectCoNET ( socket, sessionHash )
})
}
Expand Down Expand Up @@ -252,12 +253,20 @@ export default class localServer {
console.log ( `active key success! \n[${ key }]`)

this.keyPair.publicKey = this.config.keypair.publicKey = key
this.keyPair.verified = this.config.keypair.verified = true
this.keyPair.verified = this.config.keypair.verified = true
this.imapConnectData.sendToQTGate = true
_callBack ()
Tool.saveEncryptoData ( Tool.imapDataFileName1, this.imapConnectData, this.config, this.savedPasswrod, err => {
if ( err ) {
saveLog (`Tool.saveConfig return Error: [${ err.message }]`)
}
})
return Tool.saveConfig ( this.config, err => {
if ( err ) {
saveLog (`Tool.saveConfig return Error: [${ err.message }]`)
}
_callBack ()


})

}
Expand Down Expand Up @@ -580,7 +589,6 @@ export default class localServer {

}


constructor( private cmdResponse: ( cmd: QTGateAPIRequestCommand ) => void, test: boolean ) {
//Express.static.mime.define({ 'message/rfc822' : ['mhtml','mht'] })
//Express.static.mime.define ({ 'multipart/related' : ['mhtml','mht'] })
Expand Down
34 changes: 21 additions & 13 deletions app/public/scripts/appsManager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 70aafa0

Please sign in to comment.