From 3e881d4b06a4d933121d0db6ac9d84d0af19036c Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 9 May 2024 15:50:39 +0300 Subject: [PATCH] write client version also if we can't parse it (#472) --- .../io/emeraldpay/dshackle/upstream/UpstreamSettingsDetector.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/UpstreamSettingsDetector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/UpstreamSettingsDetector.kt index a634c8644..69b6a0e18 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/UpstreamSettingsDetector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/UpstreamSettingsDetector.kt @@ -77,7 +77,7 @@ abstract class BasicEthUpstreamSettingsDetector( val firstSlash = client.indexOf("/") val secondSlash = client.indexOf("/", firstSlash + 1) if (firstSlash == -1 || secondSlash == -1 || secondSlash < firstSlash) { - return null + return node.asText() } return client.substring(firstSlash + 1, secondSlash) }