mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-18 08:46:06 +00:00
Replace ?ed25519= with ?key= in peering URIs
This commit is contained in:
@ -75,7 +75,7 @@ func (l *links) call(u *url.URL, sintf string) error {
|
||||
// return fmt.Errorf("peer %s is not correctly formatted (%s)", uri, err)
|
||||
//}
|
||||
tcpOpts := tcpOptions{}
|
||||
if pubkeys, ok := u.Query()["ed25519"]; ok && len(pubkeys) > 0 {
|
||||
if pubkeys, ok := u.Query()["key"]; ok && len(pubkeys) > 0 {
|
||||
tcpOpts.pinnedEd25519Keys = make(map[keyArray]struct{})
|
||||
for _, pubkey := range pubkeys {
|
||||
if sigPub, err := hex.DecodeString(pubkey); err == nil {
|
||||
|
Reference in New Issue
Block a user