Always run relaying when enabled (fixes #2665)

This commit is contained in:
Jakob Borg
2016-01-12 16:02:59 +01:00
parent 1df40fbdeb
commit 70bac24832
3 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -737,7 +737,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)
}