mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
fix nil pointer when attempting to access node config
This commit is contained in:
parent
414c100125
commit
e67ee9232d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue