diff --git a/lib/config/config.go b/lib/config/config.go
index 40ebdf65..22e14258 100644
--- a/lib/config/config.go
+++ b/lib/config/config.go
@@ -218,7 +218,7 @@ type OptionsConfiguration struct {
GlobalAnnEnabled bool `xml:"globalAnnounceEnabled" json:"globalAnnounceEnabled" default:"true"`
LocalAnnEnabled bool `xml:"localAnnounceEnabled" json:"localAnnounceEnabled" default:"true"`
LocalAnnPort int `xml:"localAnnouncePort" json:"localAnnouncePort" default:"21025"`
- LocalAnnMCAddr string `xml:"localAnnounceMCAddr" json:"localAnnounceMCAddr" default:"[ff32::5222]:21026"`
+ LocalAnnMCAddr string `xml:"localAnnounceMCAddr" json:"localAnnounceMCAddr" default:"[ff12::8384]:21027"`
RelayServers []string `xml:"relayServer" json:"relayServers" default:"dynamic+https://relays.syncthing.net"`
MaxSendKbps int `xml:"maxSendKbps" json:"maxSendKbps"`
MaxRecvKbps int `xml:"maxRecvKbps" json:"maxRecvKbps"`
@@ -504,6 +504,11 @@ func convertV11V12(cfg *Configuration) {
}
}
+ // Use new multicast group
+ if cfg.Options.LocalAnnMCAddr == "[ff32::5222]:21026" {
+ cfg.Options.LocalAnnMCAddr = "[ff12::8384]:21027"
+ }
+
cfg.Version = 12
}
diff --git a/lib/config/config_test.go b/lib/config/config_test.go
index 06fbe9f3..6b746cd1 100644
--- a/lib/config/config_test.go
+++ b/lib/config/config_test.go
@@ -36,7 +36,7 @@ func TestDefaultValues(t *testing.T) {
GlobalAnnEnabled: true,
LocalAnnEnabled: true,
LocalAnnPort: 21025,
- LocalAnnMCAddr: "[ff32::5222]:21026",
+ LocalAnnMCAddr: "[ff12::8384]:21027",
RelayServers: []string{"dynamic+https://relays.syncthing.net"},
MaxSendKbps: 0,
MaxRecvKbps: 0,
diff --git a/test/h1/config.xml b/test/h1/config.xml
index ce642326..833a0324 100644
--- a/test/h1/config.xml
+++ b/test/h1/config.xml
@@ -51,7 +51,7 @@
false
true
21025
- [ff32::5222]:21026
+ [ff12::8384]:21027
dynamic+https://relays.syncthing.net
0
0
diff --git a/test/h2/config.xml b/test/h2/config.xml
index 8e56790b..cfc5394d 100644
--- a/test/h2/config.xml
+++ b/test/h2/config.xml
@@ -55,7 +55,7 @@
false
true
21025
- [ff32::5222]:21026
+ [ff12::8384]:21027
dynamic+https://relays.syncthing.net
0
0
diff --git a/test/h3/config.xml b/test/h3/config.xml
index cba94838..ee34a782 100644
--- a/test/h3/config.xml
+++ b/test/h3/config.xml
@@ -44,7 +44,7 @@
false
false
21025
- [ff32::5222]:21026
+ [ff12::8384]:21027
dynamic+https://relays.syncthing.net
0
0
diff --git a/test/h4/config.xml b/test/h4/config.xml
index bbe2863a..551a42be 100644
--- a/test/h4/config.xml
+++ b/test/h4/config.xml
@@ -23,7 +23,7 @@
false
false
21025
- [ff32::5222]:21026
+ [ff12::8384]:21027
dynamic+https://relays.syncthing.net
0
0