Actually locally save server attributes
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-05-06 18:14:22 -07:00
parent 81de1983fd
commit 924be178af
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