优化网络实现

lowmem
Matthew 1 month ago
parent 0c57bca352
commit d36d0d916d

@ -1707,8 +1707,18 @@ public class MicroPhotoService extends Service {
exitValue = routeProcess2.waitFor();
routeCommand = "/system/xbin/su root /system/bin/ip rule add from all to 192.168.68.0/24 lookup eth0 prio 1000";
Process routeProcess3 = Runtime.getRuntime().exec(routeCommand);
exitValue = routeProcess3.waitFor();
for (int idx = 0; idx < 3; idx++) {
Process routeProcess3 = Runtime.getRuntime().exec(routeCommand);
exitValue = routeProcess3.waitFor();
if (exitValue == 0) {
break;
}
try {
Thread.sleep(100);
} catch (Exception ex) {
ex.printStackTrace();
}
}
if (exitValue != 0) {

Loading…
Cancel
Save