1 jar 2/2

This commit is contained in:
sirjonasxx 2019-01-17 19:46:05 +01:00
parent da15c84bd0
commit 56509fcbe1

View File

@ -1,6 +1,7 @@
package gearth.protocol; package gearth.protocol;
import gearth.misc.Cacher; import gearth.misc.Cacher;
import gearth.misc.OSValidator;
import gearth.protocol.hostreplacer.HostReplacer; import gearth.protocol.hostreplacer.HostReplacer;
import gearth.protocol.hostreplacer.HostReplacerFactory; import gearth.protocol.hostreplacer.HostReplacerFactory;
import gearth.protocol.memory.Rc4Obtainer; import gearth.protocol.memory.Rc4Obtainer;
@ -86,6 +87,17 @@ public class HConnection {
} }
} }
} }
if (OSValidator.isMac()) {
for (int i = 2; i <= autoDetectHosts.size(); i++) {
ProcessBuilder allowLocalHost = new ProcessBuilder("ifconfig", "lo0", "alias", ("127.0.0." + i), "up");
try {
allowLocalHost.start();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} }