更新 IP 控制方法
This commit is contained in:
parent
e03bae5d46
commit
39a2993481
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue