diff --git a/src/TorSharp/Tools/Tor/TorFetcher.cs b/src/TorSharp/Tools/Tor/TorFetcher.cs index 8936ea0..3b0ebcd 100644 --- a/src/TorSharp/Tools/Tor/TorFetcher.cs +++ b/src/TorSharp/Tools/Tor/TorFetcher.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -46,11 +46,11 @@ private FileNamePatternAndFormat GetFileNamePatternAndFormat() { if (_settings.Architecture == TorSharpArchitecture.X86) { - pattern = @"tor-expert-bundle-(?[\d\.]+)-windows-i686\.tar\.gz$"; + pattern = @"tor-expert-bundle-windows-i686-(?[\d\.]+)\.tar\.gz$"; } else if (_settings.Architecture == TorSharpArchitecture.X64) { - pattern = @"tor-expert-bundle-(?[\d\.]+)-windows-x86_64\.tar\.gz$"; + pattern = @"tor-expert-bundle-windows-x86_64-(?[\d\.]+)\.tar\.gz$"; } format = ZippedToolFormat.TarGz; } @@ -58,11 +58,11 @@ private FileNamePatternAndFormat GetFileNamePatternAndFormat() { if (_settings.Architecture == TorSharpArchitecture.X86) { - pattern = @"tor-expert-bundle-(?[\d\.]+)-linux-i686\.tar\.gz$"; + pattern = @"tor-expert-bundle-linux-i686-(?[\d\.]+)\.tar\.gz$"; } else if (_settings.Architecture == TorSharpArchitecture.X64) { - pattern = @"tor-expert-bundle-(?[\d\.]+)-linux-x86_64\.tar\.gz$"; + pattern = @"tor-expert-bundle-linux-x86_64-(?[\d\.]+)\.tar\.gz$"; } format = ZippedToolFormat.TarGz; } @@ -75,4 +75,4 @@ private FileNamePatternAndFormat GetFileNamePatternAndFormat() return new FileNamePatternAndFormat(pattern, format); } } -} \ No newline at end of file +}