update package name

This commit is contained in:
2024-03-13 22:15:10 +08:00
parent 4d75a257be
commit dead60fd49
11 changed files with 16 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.agent.builder.AgentBuilder;
import net.bytebuddy.asm.Advice;

View File

@@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import java.io.File;
import java.net.URI;

View File

@@ -1,9 +1,7 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;
import sun.net.www.http.HttpClient;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.SocketTimeoutException;
import java.util.Set;
@@ -13,7 +11,7 @@ public class HttpClientAdvice {
@Advice.OnMethodExit
@SuppressWarnings("unchecked")
public static void intercept(@Advice.This Object httpClient) throws Exception {
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Method method = clazz.getDeclaredMethod("loadBlockUrlKeywords");
Set<String> BLOCK_URL_KEYWORDS = (Set<String>) method.invoke(null);
String clientString = httpClient.toString();

View File

@@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;
@@ -13,7 +13,7 @@ public class PKIXBuilderParametersAdvice {
@Advice.OnMethodEnter
@SuppressWarnings("unchecked")
public static void intercept(@Advice.Argument(value = 0, readOnly = false) Set<TrustAnchor> trustAnchors) throws Exception {
Class<?> clazz = Class.forName("win.novice.li.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Class<?> clazz = Class.forName("com.novitechie.jetbra.ConfigHelper", true, ClassLoader.getSystemClassLoader());
Method method = clazz.getDeclaredMethod("loadTrustAnchors");
Set<TrustAnchor> loadedTrustAnchors = (Set<TrustAnchor>)method.invoke(null);
HashSet<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors);

View File

@@ -1,4 +1,4 @@
package win.novice.li;
package com.novitechie.jetbra;
import net.bytebuddy.asm.Advice;