鑫垚影视 v20.42版本的 MD5 值为:e3822d25ef47121f1770bb4806abacfe
以下内容为反编译后的 t.java 源代码,内容仅作参考
package n.b.a.f.e0;
import java.io.IOException;
import n.b.a.f.w;
public class t extends n.b.a.f.e0.a {
private static final n.b.a.h.k0.e x = n.b.a.h.k0.d.f(t.class);
private final String u;
private final w v;
private boolean w = false;
public class a extends Thread {
public a() {
}
@Override
public void run() {
try {
t.this.Y2();
} catch (InterruptedException e2) {
t.x.f(e2);
} catch (Exception e3) {
throw new RuntimeException("Shutting down server", e3);
}
}
}
public t(w wVar, String str) {
this.v = wVar;
this.u = str;
}
private boolean V2(h.a.p0.c cVar) {
return this.u.equals(cVar.z(e.l.a.g.g.f14043i));
}
private boolean W2(h.a.p0.c cVar) {
return "127.0.0.1".equals(U2(cVar));
}
public void Y2() throws Exception {
this.v.stop();
if (this.w) {
System.exit(0);
}
}
@Override
public void A1(String str, n.b.a.f.s sVar, h.a.p0.c cVar, h.a.p0.e eVar) throws IOException, h.a.w {
if (str.equals("/shutdown")) {
if (!cVar.getMethod().equals("POST")) {
eVar.E(400);
return;
}
if (!V2(cVar)) {
x.c("Unauthorized shutdown attempt from " + U2(cVar), new Object[0]);
eVar.E(401);
return;
}
if (!W2(cVar)) {
x.c("Unauthorized shutdown attempt from " + U2(cVar), new Object[0]);
eVar.E(401);
return;
}
x.l("Shutting down by request from " + U2(cVar), new Object[0]);
new a().start();
}
}
public String U2(h.a.p0.c cVar) {
return cVar.x();
}
public void X2(boolean z) {
this.w = z;
}
}