ssr订阅地址改成https

This commit is contained in:
Yutousama 2022-03-17 09:09:02 +08:00
parent ec7d25f51b
commit b22bfed566

View File

@ -153,7 +153,7 @@ public class tools {
public String getClash(){ public String getClash(){
StringBuilder builder=new StringBuilder(); StringBuilder builder=new StringBuilder();
String ssrUrl=RedisTools.get("ssr"); String ssrUrl=RedisTools.get("ssr");
String url="http://127.0.0.1:25500/sub?target=clash&new_name=true&url="+URLEncoder.encode(ssrUrl, StandardCharsets.UTF_8) +"&insert=false&config=http%3A%2F%2Fgit.yutou233.cn%2Fyutou%2FACL4SSR%2Fraw%2Fmaster%2FClash%2Fconfig%2FACL4SSR.ini"; String url="http://127.0.0.1:25500/sub?target=clash&new_name=true&url="+URLEncoder.encode(ssrUrl, StandardCharsets.UTF_8) +"&insert=false&config=https%3A%2F%2Fgit.yutou233.cn%2Fyutou%2FACL4SSR%2Fraw%2Fmaster%2FClash%2Fconfig%2FACL4SSR.ini";
String text= HttpTools.get(url); String text= HttpTools.get(url);
if(text==null){ if(text==null){
System.out.println("ssr is Null = " + url); System.out.println("ssr is Null = " + url);