mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
19.59.2021 399ecccba0a361db79d6ff70ff64a0edd4a73d4f
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/RestUtils.kt
@@ -61,7 +61,7 @@
            if (remoteAddr.contains(",")) {
                // sometimes the header is of form client ip,proxy 1 ip,proxy 2 ip,...,proxy n ip,
                // we just want the client
                remoteAddr = remoteAddr.split(',')[0].trim({ it <= ' ' })
                remoteAddr = remoteAddr.split(',')[0].trim { it <= ' ' }
            }
            try {
                // If ip4/6 address string handed over, simply does pattern validation.