From 30b9fac6a7bfb7c1e4f70b4d79c329d5b1d70581 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 15 May 2023 11:49:51 -0400 Subject: [PATCH] fix: dns > ext ip --- waku/node.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/waku/node.go b/waku/node.go index 70965a49..759a063d 100644 --- a/waku/node.go +++ b/waku/node.go @@ -116,10 +116,6 @@ func Execute(options Options) { nodeOpts = append(nodeOpts, node.WithAdvertiseAddresses(options.AdvertiseAddresses...)) } - if options.Dns4DomainName != "" { - nodeOpts = append(nodeOpts, node.WithDns4Domain(options.Dns4DomainName)) - } - if options.ExtIP != "" { ip := net.ParseIP(options.ExtIP) if ip == nil { @@ -128,6 +124,10 @@ func Execute(options Options) { nodeOpts = append(nodeOpts, node.WithExternalIP(ip)) } + if options.Dns4DomainName != "" { + nodeOpts = append(nodeOpts, node.WithDns4Domain(options.Dns4DomainName)) + } + libp2pOpts := node.DefaultLibP2POptions if len(options.AdvertiseAddresses) == 0 { libp2pOpts = append(libp2pOpts, libp2p.NATPortMap()) // Attempt to open ports using uPNP for NATed hosts.)