Always run relaying when enabled (fixes #2665)

This commit is contained in:
Jakob Borg committed 2016-01-12 14:15:47 +01:00
1 parent 1e45111bde
commit f741066466
3 files changed
+1 -4

No files matched your search

+1 -1
View File
@@ -738,7 +738,7 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
// Start relay management
var relayService *relay.Service
if opts.RelaysEnabled && (opts.GlobalAnnEnabled || opts.RelayWithoutGlobalAnn) {
if opts.RelaysEnabled {
relayService = relay.NewService(cfg, tlsCfg)
mainService.Add(relayService)
}