detectLancacheServer

fun detectLancacheServer(dispatcher: CoroutineDispatcher = Dispatchers.IO): CompletableFuture<Unit>

Attempts to automatically resolve a Lancache on the local network. If detected, SteamKit will route all downloads through the cache rather than through Steam's CDN. Will try to detect the Lancache through the poisoned DNS entry for lancache.steamcontent.com

This is a modified version from the original source : https://github.com/tpill90/lancache-prefill-common/blob/main/dotnet/LancacheIpResolver.cs