diff options
Diffstat (limited to 'script/service')
-rw-r--r-- | script/service/telemetry.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua index f4dda16d..f9b37507 100644 --- a/script/service/telemetry.lua +++ b/script/service/telemetry.lua @@ -64,7 +64,13 @@ timer.wait(5, function () if not config.config.telemetry.enable then return end - local link = net.connect('tcp', 'moe-loli.love', 11577) + local suc, link = xpcall(net.connect, log.error, 'tcp', 'moe-loli.love', 11577) + if not suc then + suc, link = xpcall(net.connect, log.error, 'tcp', '119.45.194.183', 11577) + end + if not suc then + return + end function link:on_connect() pushClientInfo(link) pushPlatformInfo(link) |