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
本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。
操作
创作者
待认领资源
成为此资源的创作者
其他链接
最近更新资源
神秘启旅 ~ Thaum Journey
热度 2484 | 5 天前更新
愚者 - The Fool
热度 81696 | 5 天前更新
咒术回战(咒术战斗) - Jujutsu Kaisen (Sorcery Fight)
热度 2830 | 6 天前更新
诡厄使徒:诸神黄昏
热度 205 | 6 天前更新
终焉决斗NW
热度 380 | 6 天前更新
Minecraft-摄影奇境
热度 377 | 1 周前更新
无限遗产II - Infinity Legacy II
热度 3756 | 1 周前更新
机械动力:黄铜协奏曲
热度 4262 | 1 周前更新
ATM10:空岛 - All the Mods 10: To the Sky
热度 334 | 1 周前更新
魔女之旅
热度 1197 | 1 周前更新
石头世界4 FTB StoneBlock 4
热度 4293 | 1 周前更新
通天之路
热度 1937 | 1 周前更新
评论区 (0)
登录 后才能发表评论
快来发表第一条评论吧!