mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-27 02:40:51 +01:00
1 jar 2/2
This commit is contained in:
parent
da15c84bd0
commit
56509fcbe1
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user