Skip to content

Commit 6b5d953

Browse files
committed
Reorder bind_ip addresses to work around SERVER-35705
This fixes an issue introduced in 0f2e387. Trailing colons causes mongod to incorrectly assume the legacy config file produced by MO is in YAML format. We can work around this by swapping the order of the IPv6 and IPv4 addresses.
1 parent 42cde0d commit 6b5d953

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/presets/replicaset-30.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"journal": true,
1212
"nssize": 1,
1313
"port": 3100,
14-
"bind_ip": "0.0.0.0,::",
14+
"bind_ip": "::,0.0.0.0",
1515
"smallfiles": true,
1616
"setParameter": {"enableTestCommands": 1}
1717
},
@@ -33,7 +33,7 @@
3333
"journal": true,
3434
"nssize": 1,
3535
"port": 3101,
36-
"bind_ip": "0.0.0.0,::",
36+
"bind_ip": "::,0.0.0.0",
3737
"smallfiles": true,
3838
"setParameter": {"enableTestCommands": 1}
3939
},
@@ -55,7 +55,7 @@
5555
"journal": true,
5656
"nssize": 1,
5757
"port": 3102,
58-
"bind_ip": "0.0.0.0,::",
58+
"bind_ip": "::,0.0.0.0",
5959
"smallfiles": true,
6060
"setParameter": {"enableTestCommands": 1}
6161
},

scripts/presets/standalone-30.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"journal": true,
1010
"nssize": 1,
1111
"port": 2700,
12-
"bind_ip": "0.0.0.0,::",
12+
"bind_ip": "::,0.0.0.0",
1313
"smallfiles": true,
1414
"setParameter": {"enableTestCommands": 1}
1515
},

0 commit comments

Comments
 (0)