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
本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。
操作
创作者
待认领资源
成为此资源的创作者
其他链接
最近更新资源
通天之路
热度 307 | 3 天前更新
匠途闲境 - Create Craft & Quiet
热度 201 | 3 天前更新
VERITY.exe
热度 354 | 6 天前更新
咒术回战(咒术战斗)
热度 68939 | 6 天前更新
暮色森林精选 - The Best of Twilight Forest
热度 25599 | 6 天前更新
无限计划 0.1 - Project Infinity 0.1
热度 9743 | 6 天前更新
黑暗RPG - DarkRPG - Forge
热度 9585 | 6 天前更新
[TLWS]末世生辉 The Last World Shines
热度 9397 | 6 天前更新
简易小屋
热度 622 | 1 周前更新
灾厄巫咒
热度 660 | 2 周前更新
阿卡迪亚的天启
热度 2872 | 2 周前更新
寄生仙途
热度 801 | 2 周前更新
评论区 (0)
登录 后才能发表评论
快来发表第一条评论吧!