diff options
Diffstat (limited to 'src/slskd')
| -rw-r--r-- | src/slskd/Application.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 531355a5..3c0c1e7f 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -398,14 +398,14 @@ namespace slskd { Log.Warning($"Not connecting to the Soulseek server; username and/or password invalid. Specify valid credentials and manually connect, or update config and restart."); } - else if (OptionsAtStartup.Relay.Mode.ToEnum<OperationMode>() == OperationMode.Agent) + else if (OptionsAtStartup.Relay.Enabled && OptionsAtStartup.Relay.Mode.ToEnum<OperationMode>() == OperationMode.Agent) { Log.Information("Running in Agent relay mode; not connecting to the Soulseek server."); await Relay.Client.StartAsync(cancellationToken); } else { - if (OptionsAtStartup.Relay.Mode.ToEnum<OperationMode>() == OperationMode.Debug) + if (OptionsAtStartup.Relay.Enabled && OptionsAtStartup.Relay.Mode.ToEnum<OperationMode>() == OperationMode.Debug) { Log.Warning("Running in Debug relay mode; connecting to controller"); _ = Relay.Client.StartAsync(cancellationToken); |
