Fast IP Ping 图标

Fast IP Ping

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 v1.0.11-mc1.21.10-neoforge
本资源为搬运资源,原资源地址: https://modrinth.com/mod/fast-ip-ping
资源信息

Minecraft 版本: 1.21.9 1.21.10

平台: neoforge

标签: optimization

资源介绍

pinging

Yeet the laggy reversed DNS lookup for literal IP server addresses

Extracted from the yeetServerIpReversedDnsLookup option in TweakerMore Mod

What & Why & How

For servers whose addresses are represented solely by a literal IP, e.g. 192.168.2.10:25565, disable reverse DNS lookups in the corresponding InetAddress object

Many non-loopback IPs lack associated domain names, which makes reverse lookups time-consuming

// java.net.InetAddress#getHostName(boolean)
String getHostName(boolean check) {
    if (holder().getHostName() == null) {  // It will be null if InetAddress.getByName() received a literal IP
        holder().hostName = InetAddress.getHostFromNameService(this, check);  // <-- takes forever
    }
    return holder().getHostName();
}

This option sets the domain of those servers directly to their IP, bypassing the reverse DNS check

This results in a 1s ~ 5s reduction in time for servers with literal IP address. Affects the following environments:

  • Pinging the server in the server list screen
  • Connecting to the server

Environment

  • Client-side only
  • Fabric / Forge / NeoForge mod loader. No extra requirement is needed
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Small Items Mod

价格:0 墨喵币
下载量:0

查看详情
DupeTrigger

价格:0 墨喵币
下载量:0

查看详情
Tacz_Recycling

价格:0 墨喵币
下载量:0

查看详情
No Fortune Chest

价格:0 墨喵币
下载量:0

查看详情