diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-07-22 07:35:28 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-07-22 07:35:28 -0500 |
| commit | 7fc63ec68afd3bcd9213846dd75a5afb008acd55 (patch) | |
| tree | 6abb090cf066f307e28ab5e2a55a898867fce541 /src | |
| parent | 8f7f5a7733e61ce01f7d2d3e13739578b09b2692 (diff) | |
| download | slskd-7fc63ec68afd3bcd9213846dd75a5afb008acd55.tar.gz | |
remove UsingProxy shorthand
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/Service.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/slskd/Application/Service.cs b/src/slskd/Application/Service.cs index 9cb7b3fb..e04b7a3f 100644 --- a/src/slskd/Application/Service.cs +++ b/src/slskd/Application/Service.cs @@ -1,4 +1,4 @@ -// <copyright file="Service.cs" company="slskd Team"> +// <copyright file="Service.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -67,7 +67,7 @@ namespace slskd ProxyOptions proxyOptions = default; - if (UsingProxy) + if (Options.Soulseek.Connection.Proxy.Enabled) { proxyOptions = new ProxyOptions( address: Options.Soulseek.Connection.Proxy.Address, @@ -145,13 +145,12 @@ namespace slskd private IRoomTracker RoomTracker { get; set; } private ISharedFileCache SharedFileCache { get; set; } private ITransferTracker TransferTracker { get; set; } - private bool UsingProxy => Options.Soulseek.Connection.Proxy.Enabled; private IPushbulletService Pushbullet { get; } private ReaderWriterLockSlim OptionsSyncRoot { get; } = new ReaderWriterLockSlim(); public async Task StartAsync(CancellationToken cancellationToken) { - if (UsingProxy) + if (Options.Soulseek.Connection.Proxy.Enabled) { Logger.Information($"Using Proxy {Options.Soulseek.Connection.Proxy.Address}:{Options.Soulseek.Connection.Proxy.Port}"); } |
