调整监听顺序
This commit is contained in:
parent
66d8dce567
commit
cdcaaf28e4
@ -85,7 +85,7 @@ namespace FastGithub.ReverseProxy
|
||||
this.logger.LogWarning($"不支持自动安装证书{this.CaCerFilePath}:请根据你的系统平台手工安装和信任CA证书");
|
||||
}
|
||||
|
||||
GitUtil.SetSslverify(false);
|
||||
GitUtil.ConfigSslverify(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -12,7 +12,8 @@ namespace FastGithub.ReverseProxy
|
||||
/// 设置ssl验证
|
||||
/// </summary>
|
||||
/// <param name="value">是否验证</param>
|
||||
public static void SetSslverify(bool value)
|
||||
/// <returns></returns>
|
||||
public static bool ConfigSslverify(bool value)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -24,9 +25,11 @@ namespace FastGithub.ReverseProxy
|
||||
CreateNoWindow = true,
|
||||
WindowStyle = ProcessWindowStyle.Hidden
|
||||
});
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -51,9 +51,9 @@ namespace FastGithub
|
||||
webBuilder.UseKestrel(kestrel =>
|
||||
{
|
||||
kestrel.Limits.MaxRequestBodySize = null;
|
||||
kestrel.ListenGithubSshProxy();
|
||||
kestrel.ListenHttpReverseProxy();
|
||||
kestrel.ListenHttpsReverseProxy();
|
||||
kestrel.ListenHttpReverseProxy();
|
||||
kestrel.ListenGithubSshProxy();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user