SSR C# 更新订阅链接的时候默认不使用 TLS1.2 协议,有没有办法既不用修改代码重新编译,也不用修改系统注册表开启呢?
答案是有的:
https://kevinchalet.com/2019/04/11/forcing-an-old-net-application-to-support-tls-1-2-without-recompiling-it/
在 exe 同目录新建
Win7 系统仍然需要修改注册表开启。
答案是有的:
https://kevinchalet.com/2019/04/11/forcing-an-old-net-application-to-support-tls-1-2-without-recompiling-it/
在 exe 同目录新建
<exe文件名>.config ,然后写入<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<AppContextSwitchOverrides value="Switch.System.Net.DontEnableSystemDefaultTlsVersions=false"/>
</runtime>
</configuration>
即可。Win7 系统仍然需要修改注册表开启。