diff --git a/cmd/mesh/main.go b/cmd/mesh/main.go index 28779930..cc230075 100644 --- a/cmd/mesh/main.go +++ b/cmd/mesh/main.go @@ -275,6 +275,9 @@ func run(args yggArgs, ctx context.Context) { } } + // Start HTTP server + n.admin.StartHttpServer(args.useconffile, cfg) + // Setup the multicast module. { options := []multicast.SetupOption{} @@ -317,8 +320,6 @@ func run(args yggArgs, ctx context.Context) { logger.Infof("Your public key is %s", hex.EncodeToString(public[:])) logger.Infof("Your IPv6 address is %s", address.String()) logger.Infof("Your IPv6 subnet is %s", subnet.String()) - // Start HTTP server - n.admin.StartHttpServer(args.useconffile, cfg) // Block until we are told to shut down. <-ctx.Done()