涩里番 v4.2版本的 MD5 值为:b7af51031b798a68c7a3a9ba5a0dff66
以下内容为反编译后的 k.java 源代码,内容仅作参考
package m4;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Arrays;
import java.util.Locale;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public final class k {
public final ExecutorService f11369a = Executors.newSingleThreadExecutor();
public final String f11370b = "127.0.0.1";
public final int f11371c;
public class a implements Callable<Boolean> {
public a() {
}
@Override
public final Boolean call() {
boolean z10;
h hVar = new h(k.this.a(), new l.e(), new z2.b());
try {
try {
byte[] bytes = "ping ok".getBytes();
hVar.a(0L);
byte[] bArr = new byte[bytes.length];
hVar.read(bArr);
z10 = Arrays.equals(bytes, bArr);
a3.c.H("Ping response: `" + new String(bArr) + "`, pinged? " + z10);
} catch (m e10) {
a3.c.G("Error reading ping response", e10);
z10 = false;
}
hVar.close();
return Boolean.valueOf(z10);
} catch (Throwable th) {
hVar.close();
throw th;
}
}
}
public k(int i2) {
this.f11371c = i2;
}
public final String a() {
return String.format(Locale.US, "http://%s:%d/%s", this.f11370b, Integer.valueOf(this.f11371c), "ping");
}
public final void b(Socket socket) {
OutputStream outputStream = socket.getOutputStream();
outputStream.write("HTTP/1.1 200 OK\n\n".getBytes());
outputStream.write("ping ok".getBytes());
}
}