Actually locally save server attributes #353

Merged
erinn merged 1 commits from servers into master 2021-05-07 01:16:08 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -344,13 +344,13 @@ func (cp *cwtchPeer) AddServer(serverSpecification string) error {
}
// Store the key bundle for the server so we can reconstruct a tofubundle invite
cp.SetAttribute(string(model.BundleType), serverSpecification)
cp.SetContactAttribute(onion, string(model.BundleType), serverSpecification)
// If we have gotten to this point we can assume this is a safe key bundle signed by the
// server with no conflicting keys. So we are going to publish all the keys
for k, v := range ab {
log.Debugf("Server (%v) has %v key %v", onion, k, v)
cp.SetAttribute(k, v)
cp.SetContactAttribute(onion, k, v)
}
return nil