Actually locally save server attributes
This commit is contained in:
parent
81de1983fd
commit
924be178af
|
@ -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
|
// 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
|
// 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
|
// server with no conflicting keys. So we are going to publish all the keys
|
||||||
for k, v := range ab {
|
for k, v := range ab {
|
||||||
log.Debugf("Server (%v) has %v key %v", onion, k, v)
|
log.Debugf("Server (%v) has %v key %v", onion, k, v)
|
||||||
cp.SetAttribute(k, v)
|
cp.SetContactAttribute(onion, k, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue