From 9eb2fd7d7ff74e05a7292cf5225b13cefb90e25d Mon Sep 17 00:00:00 2001 From: Robinson Date: Sat, 28 May 2022 12:16:05 +0200 Subject: [PATCH] Added support for explicit loopback IP notation --- src/dorkbox/network/Server.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/network/Server.kt b/src/dorkbox/network/Server.kt index a126706c..f765ac33 100644 --- a/src/dorkbox/network/Server.kt +++ b/src/dorkbox/network/Server.kt @@ -184,7 +184,7 @@ open class Server( internal val listenIPv4Address: InetAddress? = if (canUseIPv4) { when (config.listenIpAddress) { - "loopback", "localhost", "lo" -> IPv4.LOCALHOST + "loopback", "localhost", "lo", "127.0.0.1", "::1" -> IPv4.LOCALHOST "0", "::", "0.0.0.0", "*" -> { // this is the "wildcard" address. Windows has problems with this. IPv4.WILDCARD @@ -200,7 +200,7 @@ open class Server( internal val listenIPv6Address: InetAddress? = if (canUseIPv6) { when (config.listenIpAddress) { - "loopback", "localhost", "lo" -> IPv6.LOCALHOST + "loopback", "localhost", "lo", "127.0.0.1", "::1" -> IPv6.LOCALHOST "0", "::", "0.0.0.0", "*" -> { // this is the "wildcard" address. Windows has problems with this. IPv6.WILDCARD