()
| 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 | } |