Skip to content

Commit

Permalink
fix: api client patch crash when set a empty http proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-L committed Jun 22, 2024
1 parent d355da9 commit 748c37d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ private static void Postfix(HTTPRequest request)
{
request.RemoveHeader("X-MacAddress");

request.Proxy = new HTTPProxy(new Uri(PatcherMain.PatcherSettings.HttpProxyUri));
if (PatcherMain.PatcherSettings.UseProxy)
request.Proxy = new HTTPProxy(new Uri(PatcherMain.PatcherSettings.HttpProxyUri));
}
}
}

0 comments on commit 748c37d

Please sign in to comment.