Skip to content

Commit

Permalink
write client version also if we can't parse it (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonatoz authored May 9, 2024
1 parent 72c6b9d commit 3e881d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3e881d4

Please sign in to comment.