Main password encrypted in memory
This commit is contained in:
@@ -52,7 +52,10 @@ func (ps *PeerStorage) StorePeer(peer *Peer) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
password := GetConfig().memoryPassword
|
||||
password, err := GetConfig().GetMemPass()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if peer.dbPassword != "" {
|
||||
password = peer.dbPassword
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user