Always run relaying when enabled (fixes #2665)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user