From 39a2993481027274640dabfd8b709096620d2698 Mon Sep 17 00:00:00 2001 From: lenheart Date: Fri, 26 Dec 2025 15:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20IP=20=20=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _DPS_/_Core/Interface.nut | 11 ----------- _DPS_/_Core/ServerControl/ServerControl.nut | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) 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));