MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / findPort

Method findPort

app/src/main/java/com/github/catvod/spider/Proxy.java:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 private static void findPort() {
53 if (port > 0) return;
54 for (int p = 8964; p < 9999; p++) {
55 if ("ok".equals(OkHttp.string("http://127.0.0.1:" + p + "/proxy?do=ck", null))) {
56 SpiderDebug.log("本地代理端口:" + p);
57 port = p;
58 break;
59 }
60 }
61 }
62}

Callers 1

initMethod · 0.95

Calls 3

stringMethod · 0.95
logMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected