Commit 92d6b1e3 authored by nanahira's avatar nanahira

fix

parent 7ce4a422
......@@ -286,14 +286,13 @@ if settings.modules.cloud_replay.enabled
if settings.modules.windbot.enabled
windbots = global.windbots = loadJSON(settings.modules.windbot.botlist).windbots
real_windbot_server_ip = settings.modules.windbot.server_ip
real_windbot_server_ip = global.real_windbot_server_ip = settings.modules.windbot.server_ip
if !settings.modules.windbot.server_ip.includes("127.0.0.1")
dns = require('dns')
dns.lookup(settings.modules.windbot.server_ip,(err,addr) ->
if(!err)
real_windbot_server_ip = addr
real_windbot_server_ip = global.real_windbot_server_ip = addr
)
global.real_windbot_server_ip = real_windbot_server_ip
if settings.modules.heartbeat_detection.enabled
......
......@@ -335,16 +335,15 @@
if (settings.modules.windbot.enabled) {
windbots = global.windbots = loadJSON(settings.modules.windbot.botlist).windbots;
real_windbot_server_ip = settings.modules.windbot.server_ip;
real_windbot_server_ip = global.real_windbot_server_ip = settings.modules.windbot.server_ip;
if (!settings.modules.windbot.server_ip.includes("127.0.0.1")) {
dns = require('dns');
dns.lookup(settings.modules.windbot.server_ip, function(err, addr) {
if (!err) {
return real_windbot_server_ip = addr;
return real_windbot_server_ip = global.real_windbot_server_ip = addr;
}
});
}
global.real_windbot_server_ip = real_windbot_server_ip;
}
if (settings.modules.heartbeat_detection.enabled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment