更新 IP 控制方法

This commit is contained in:
lenheart 2025-12-26 15:24:31 +08:00
parent e03bae5d46
commit 39a2993481
2 changed files with 11 additions and 11 deletions

View File

@ -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;
});

View File

@ -96,6 +96,17 @@ class ServerControl {
//获得本服务器的IP //获得本服务器的IP
GatewaySocketPackFuncMap.rawset(10002, function(Jso) { GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
getroottable().Dps_Self_Ip <- Jso.myip; 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)); }.bindenv(this));