5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-09-19 00:59:37 +00:00

fix nil pointer when attempting to access node config

This commit is contained in:
Arceliar 2021-06-05 06:00:33 -05:00
parent 414c100125
commit e67ee9232d

View File

@ -271,7 +271,7 @@ func main() {
// Setup the Yggdrasil node itself. The node{} type includes a Core, so we
// don't need to create this manually.
n := node{}
n := node{config: cfg}
// Now start Yggdrasil - this starts the DHT, router, switch and other core
// components needed for Yggdrasil to operate
if err = n.core.Start(cfg, logger); err != nil {