From 2a29813bde50558de6a74de3bd876d83bce815d2 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 24 Jul 2020 21:15:07 -0400 Subject: [PATCH] Well, this is embarassing. --- .../proxy/network/netty/SeparatePoolInetNameResolver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/network/netty/SeparatePoolInetNameResolver.java b/proxy/src/main/java/com/velocitypowered/proxy/network/netty/SeparatePoolInetNameResolver.java index 81dc6340d..75e03d5f6 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/network/netty/SeparatePoolInetNameResolver.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/network/netty/SeparatePoolInetNameResolver.java @@ -2,6 +2,7 @@ package com.velocitypowered.proxy.network.netty; import com.google.common.cache.Cache; import com.google.common.cache.CacheBuilder; +import com.google.common.collect.ImmutableList; import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.netty.resolver.AddressResolver; import io.netty.resolver.AddressResolverGroup; @@ -56,7 +57,7 @@ public final class SeparatePoolInetNameResolver extends InetNameResolver { resolveExecutor.execute(() -> { promise.addListener(future -> { if (future.isSuccess()) { - cache.put(inetHost, (List) future.getNow()); + cache.put(inetHost, ImmutableList.of((InetAddress) future.getNow())); } }); this.delegate.resolve(inetHost, promise);