diff --git a/src/main/java/net/frozenorb/apiv3/route/servers/POSTServers.java b/src/main/java/net/frozenorb/apiv3/route/servers/POSTServers.java index 6e16af8..fe65b56 100644 --- a/src/main/java/net/frozenorb/apiv3/route/servers/POSTServers.java +++ b/src/main/java/net/frozenorb/apiv3/route/servers/POSTServers.java @@ -29,7 +29,9 @@ public final class POSTServers implements Handler { return; } - if (!IpUtils.isValidIp(ip)) { + String ipHost = ip.split(":")[0]; + + if (!IpUtils.isValidIp(ipHost)) { ErrorUtils.respondInvalidInput(ctx, "Ip address \"" + ip + "\" is not valid."); return; }