Skip to content

Commit

Permalink
flare proxy support
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyFart committed Dec 7, 2024
1 parent 16ff9d6 commit 4b4f9f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Configs/BookGetterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ private static HttpClient GetClient(Options options, CookieContainer container,
InnerHandler = handler
};

if (!string.IsNullOrEmpty(options.Proxy)) {
chandler.ProxyUrl = options.Proxy;
}

var cclient = new HttpClient(chandler);
cclient.Timeout = TimeSpan.FromSeconds(options.Timeout);

Expand Down

0 comments on commit 4b4f9f8

Please sign in to comment.