diff --git a/_DPS_/_Core/BaseClass/Socket/SocketBase.nut b/_DPS_/_Core/BaseClass/Socket/SocketBase.nut index e78f2f4..357064e 100644 --- a/_DPS_/_Core/BaseClass/Socket/SocketBase.nut +++ b/_DPS_/_Core/BaseClass/Socket/SocketBase.nut @@ -28,13 +28,6 @@ if (!getroottable().rawin("OnGatewaySocketConnectFunc")) OnGatewaySocketConnectF function OnGatewaySocketConnect() { print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m"); - //获得本服务器的IP - GatewaySocketPackFuncMap.rawset(10002, function(Jso) { - getroottable().Dps_Self_Ip <- Jso.myip; - print("本服务器IP: " + Jso.myip); - print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m"); - }); - Timer.SetTimeOut(function() { local Jso = { op = 10001, diff --git a/_DPS_/_Core/Interface.nut b/_DPS_/_Core/Interface.nut index 3eb044f..d971465 100644 --- a/_DPS_/_Core/Interface.nut +++ b/_DPS_/_Core/Interface.nut @@ -19,8 +19,7 @@ Cb_MySQL_Open_Enter_Func.info <- function(args) { try { dofile("/dp_s/Front_main.nut"); Front_main(); -} catch (exception){ -} +} catch (exception) {} function sqr_main() { if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.332) { @@ -207,14 +206,22 @@ if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329 && DP_S_VERSI ); } +//获得本服务器的IP +GatewaySocketPackFuncMap.rawset(10002, function(Jso) { + getroottable().Dps_Self_Ip <- Jso.myip; + print("本服务器IP: " + Jso.myip); + print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m"); +}); + + if (!getroottable().rawin("Dps_Self_Ip")) Dps_Self_Ip <- ""; - Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"], - function(args) { - local SUser = User(args[1]); - local SNU = Memory.allocUtf8String(getroottable().Dps_Self_Ip); - SUser.SendBlob(SNU); - return null; - }, - function(args) { - return null; - }); \ No newline at end of file +Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"], + function(args) { + local SUser = User(args[1]); + local SNU = Memory.allocUtf8String(getroottable().Dps_Self_Ip); + SUser.SendBlob(SNU); + return null; + }, + function(args) { + return null; + }); \ No newline at end of file diff --git a/_DPS_/_Core/main.nut b/_DPS_/_Core/main.nut index c110eea..02cfa9f 100644 --- a/_DPS_/_Core/main.nut +++ b/_DPS_/_Core/main.nut @@ -1,7 +1,6 @@ getroottable().DebugModelFlag <- false; //初始化插件 function InitPluginInfo() { - try { local Io = IO("/java_plugin/Restart", "r"); Io.Close(); diff --git a/lib/libAurora.so b/lib/libAurora.so index 115bd94..85703e8 100644 Binary files a/lib/libAurora.so and b/lib/libAurora.so differ