File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.)
You can’t perform that action at this time.
0 commit comments