mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 08:25:07 +03:00
call StartHttpServer() early as soon as possible
This commit is contained in:
parent
4042cf3118
commit
5469f3506b
1 changed files with 3 additions and 2 deletions
|
@ -275,6 +275,9 @@ func run(args yggArgs, ctx context.Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start HTTP server
|
||||||
|
n.admin.StartHttpServer(args.useconffile, cfg)
|
||||||
|
|
||||||
// Setup the multicast module.
|
// Setup the multicast module.
|
||||||
{
|
{
|
||||||
options := []multicast.SetupOption{}
|
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 public key is %s", hex.EncodeToString(public[:]))
|
||||||
logger.Infof("Your IPv6 address is %s", address.String())
|
logger.Infof("Your IPv6 address is %s", address.String())
|
||||||
logger.Infof("Your IPv6 subnet is %s", subnet.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.
|
// Block until we are told to shut down.
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue