【添加】utils修复
This commit is contained in:
-33
@@ -207,39 +207,6 @@ public class k {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static String getMaOld() {
|
||||
if (l.c(c)) {
|
||||
return c;
|
||||
}
|
||||
String str1 = getOSName();
|
||||
String str2 = getSystemRoot() + "/system32/ipconfig /all";
|
||||
String str3 = null;
|
||||
if (str1.startsWith("windows")) {
|
||||
if (str1.equals("windows xp")) {
|
||||
str3 = b(str2);
|
||||
} else if (str1.equals("windows 2003")) {
|
||||
str3 = b(str2);
|
||||
} else {
|
||||
str3 = getWindow7Ma();
|
||||
}
|
||||
} else if (str1.startsWith("linux")) {
|
||||
str3 = getLinuxMa();
|
||||
} else {
|
||||
str3 = getUnixMa();
|
||||
}
|
||||
c = str3;
|
||||
return str3;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static String getOSName() {
|
||||
return System.getProperty("os.name").toLowerCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user