5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 11:50:28 +00:00

Update doc.go dial example

This commit is contained in:
Neil Alexander 2020-02-16 23:57:05 +00:00
parent 6c731c4efc
commit 471fcd7fdf
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -113,9 +113,9 @@ a Dialer:
// ... // ...
} }
You can then dial using the 16-byte node ID in hexadecimal format, for example: You can then dial using the node's public key in hexadecimal format, for example:
conn, err := dialer.Dial("nodeid", "24a58cfce691ec016b0f698f7be1bee983cea263781017e99ad3ef62b4ef710a45d6c1a072c5ce46131bd574b78818c9957042cafeeed13966f349e94eb771bf") conn, err := dialer.Dial("curve25519", "55071be281f50d0abbda63aadc59755624280c44b2f1f47684317aa4e0325604")
if err != nil { if err != nil {
// ... // ...
} }