You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,15 @@ import (
35
35
"syscall"
36
36
"time"
37
37
38
-
_ "github.com/arangodb-helper/arangodb/client"
39
-
service "github.com/arangodb-helper/arangodb/service"
40
38
homedir "github.com/mitchellh/go-homedir"
41
39
logging "github.com/op/go-logging"
42
40
"github.com/pkg/errors"
43
41
"github.com/spf13/cobra"
44
42
"github.com/spf13/pflag"
43
+
44
+
_ "github.com/arangodb-helper/arangodb/client"
45
+
"github.com/arangodb-helper/arangodb/pkg/net"
46
+
service "github.com/arangodb-helper/arangodb/service"
45
47
)
46
48
47
49
// Configuration data with defaults:
@@ -116,7 +118,7 @@ func init() {
116
118
f.BoolVar(&allPortOffsetsUnique, "starter.unique-port-offsets", false, "If set, all peers will get a unique port offset. If false (default) only portOffset+peerAddress pairs will be unique.")
117
119
f.StringVar(&dataDir, "starter.data-dir", getEnvVar("DATA_DIR", "."), "directory to store all data the starter generates (and holds actual database directories)")
118
120
f.BoolVar(&debugCluster, "starter.debug-cluster", getEnvVar("DEBUG_CLUSTER", "") !="", "If set, log more information to debug a cluster")
119
-
f.BoolVar(&disableIPv6, "starter.disable-ipv6", false, "If set, no IPv6 notation will be used. Use this only when IPv6 address family is disabled")
121
+
f.BoolVar(&disableIPv6, "starter.disable-ipv6", !net.IsIPv6Supported(), "If set, no IPv6 notation will be used. Use this only when IPv6 address family is disabled")
120
122
121
123
f.BoolVar(&verbose, "log.verbose", false, "Turn on debug logging")
0 commit comments