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
+7-2Lines changed: 7 additions & 2 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:
@@ -86,6 +88,7 @@ var (
86
88
sslAutoOrganizationstring
87
89
sslCAFilestring
88
90
rocksDBEncryptionKeyFilestring
91
+
disableIPv6bool
89
92
dockerEndpointstring
90
93
dockerImagestring
91
94
dockerImagePullPolicystring
@@ -115,6 +118,7 @@ func init() {
115
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.")
116
119
f.StringVar(&dataDir, "starter.data-dir", getEnvVar("DATA_DIR", "."), "directory to store all data the starter generates (and holds actual database directories)")
117
120
f.BoolVar(&debugCluster, "starter.debug-cluster", getEnvVar("DEBUG_CLUSTER", "") !="", "If set, log more information to debug a cluster")
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")
118
122
119
123
f.BoolVar(&verbose, "log.verbose", false, "Turn on debug logging")
0 commit comments