Amour v4.6.9版本的 MD5 值为:60db0759ce21a7c5858136dd0821206f
以下内容为反编译后的 n.java 源代码,内容仅作参考
package w;
import java.io.IOException;
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;
import ph.u0;
public final class n {
public final ExecutorService f14729a = Executors.newSingleThreadExecutor();
public final String f14730b = "127.0.0.1";
public final int f14731c;
public class a implements Callable<Boolean> {
public a() {
}
@Override
public final Boolean call() throws Exception {
boolean z10;
k kVar = new k(n.this.a(), new com.google.gson.internal.b(), new xe.e());
try {
try {
byte[] bytes = "ping ok".getBytes();
kVar.a(0L);
byte[] bArr = new byte[bytes.length];
kVar.read(bArr);
z10 = Arrays.equals(bytes, bArr);
u0.v0("Ping response: `" + new String(bArr) + "`, pinged? " + z10);
} catch (p e10) {
u0.u0("Error reading ping response", e10);
kVar.close();
z10 = false;
}
return Boolean.valueOf(z10);
} finally {
kVar.close();
}
}
}
public n(int i) {
this.f14731c = i;
}
public static void b(Socket socket) throws IOException {
OutputStream outputStream = socket.getOutputStream();
outputStream.write("HTTP/1.1 200 OK\n\n".getBytes());
outputStream.write("ping ok".getBytes());
}
public final String a() {
return String.format(Locale.US, "http://%s:%d/%s", this.f14730b, Integer.valueOf(this.f14731c), "ping");
}
}