更新clash地址

This commit is contained in:
Yutousama 2022-03-09 17:59:12 +08:00
parent b0ad119d11
commit 4bf9b76bb0
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ToolsApplication {
public static final String version="1.4.4.5";
public static final String version="1.4.4.6";
public static void main(String[] args) {
System.out.println("当前版本号:" + version);

View File

@ -153,7 +153,7 @@ public class tools {
public String getClash(){
StringBuilder builder=new StringBuilder();
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%2Fsrc%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=http%3A%2F%2Fgit.yutou233.cn%2Fyutou%2FACL4SSR%2Fraw%2Fmaster%2FClash%2Fconfig%2FACL4SSR.ini";
String text= HttpTools.get(url);
if(text==null){
System.out.println("ssr is Null = " + url);