mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 22:15:38 +00:00
fix: dns > ext ip
This commit is contained in:
parent
9594e54d36
commit
30b9fac6a7
@ -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.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user