aria服务器添加UserAgent

croire 3 years ago
parent 127ffd5dc6
commit 08224774c3

@ -42,8 +42,8 @@ namespace DownKyi.Core.Aria2cNet.Client.Entity
//[JsonProperty("use-head")]
//public string UseHead { get; set; }
//[JsonProperty("user-agent")]
//public string UserAgent { get; set; }
[JsonProperty("user-agent")]
public string UserAgent { get; set; }
public override string ToString()
{

@ -979,10 +979,10 @@ namespace DownKyi.Services.Download
{
//HttpProxy = $"http://{Settings.GetAriaHttpProxy()}:{Settings.GetAriaHttpProxyListenPort()}",
Dir = path,
Out = localFileName
//Header = $"cookie: {Login.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com",
Out = localFileName,
//Header = $"cookie: {LoginHelper.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com",
//UseHead = "true",
//UserAgent = Utils.GetUserAgent()
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36",
};
// 如果设置了代理则增加HttpProxy

Loading…
Cancel
Save