feature<Avatar>: add settings for avatar server

This commit is contained in:
leo 2021-04-01 12:47:01 +08:00
parent 6a9ee67524
commit 3dfe3ae252
6 changed files with 73 additions and 21 deletions

View file

@ -157,7 +157,7 @@ namespace SourceGit.Helpers {
Action job = () => {
try {
HttpWebRequest req = WebRequest.CreateHttp("https://www.gravatar.com/avatar/" + md5 + "?d=404");
HttpWebRequest req = WebRequest.CreateHttp(App.Setting.UI.AvatarServer + md5 + "?d=404");
req.Timeout = 2000;
req.Method = "GET";