Skip to content

Commit 30b9fac

Browse files
committed
fix: dns > ext ip
1 parent 9594e54 commit 30b9fac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

waku/node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ func Execute(options Options) {
116116
nodeOpts = append(nodeOpts, node.WithAdvertiseAddresses(options.AdvertiseAddresses...))
117117
}
118118

119-
if options.Dns4DomainName != "" {
120-
nodeOpts = append(nodeOpts, node.WithDns4Domain(options.Dns4DomainName))
121-
}
122-
123119
if options.ExtIP != "" {
124120
ip := net.ParseIP(options.ExtIP)
125121
if ip == nil {
@@ -128,6 +124,10 @@ func Execute(options Options) {
128124
nodeOpts = append(nodeOpts, node.WithExternalIP(ip))
129125
}
130126

127+
if options.Dns4DomainName != "" {
128+
nodeOpts = append(nodeOpts, node.WithDns4Domain(options.Dns4DomainName))
129+
}
130+
131131
libp2pOpts := node.DefaultLibP2POptions
132132
if len(options.AdvertiseAddresses) == 0 {
133133
libp2pOpts = append(libp2pOpts, libp2p.NATPortMap()) // Attempt to open ports using uPNP for NATed hosts.)

0 commit comments

Comments
 (0)