diff --git a/_DPS_/_Core/Interface.nut b/_DPS_/_Core/Interface.nut index 654f683..dba320f 100644 --- a/_DPS_/_Core/Interface.nut +++ b/_DPS_/_Core/Interface.nut @@ -205,14 +205,3 @@ if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329 && DP_S_VERSI } ); } - -Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"], - function(args) { - local SUser = User(args[1]); - local SNU = Memory.allocUtf8String(Dps_Self_Ip); - SUser.SendBlob(SNU); - return null; - }, - function(args) { - return null; - }); diff --git a/_DPS_/_Core/ServerControl/ServerControl.nut b/_DPS_/_Core/ServerControl/ServerControl.nut index 41ad05d..e616a20 100644 --- a/_DPS_/_Core/ServerControl/ServerControl.nut +++ b/_DPS_/_Core/ServerControl/ServerControl.nut @@ -96,6 +96,17 @@ class ServerControl { //获得本服务器的IP GatewaySocketPackFuncMap.rawset(10002, function(Jso) { getroottable().Dps_Self_Ip <- Jso.myip; + + Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"], + function(args) { + local SUser = User(args[1]); + local SNU = Memory.allocUtf8String(Dps_Self_Ip); + SUser.SendBlob(SNU); + return null; + }, + function(args) { + return null; + }); }.bindenv(this));