write client version also if we can't parse it (#472)
This commit is contained in:
@@ -77,7 +77,7 @@ abstract class BasicEthUpstreamSettingsDetector(
|
|||||||
val firstSlash = client.indexOf("/")
|
val firstSlash = client.indexOf("/")
|
||||||
val secondSlash = client.indexOf("/", firstSlash + 1)
|
val secondSlash = client.indexOf("/", firstSlash + 1)
|
||||||
if (firstSlash == -1 || secondSlash == -1 || secondSlash < firstSlash) {
|
if (firstSlash == -1 || secondSlash == -1 || secondSlash < firstSlash) {
|
||||||
return null
|
return node.asText()
|
||||||
}
|
}
|
||||||
return client.substring(firstSlash + 1, secondSlash)
|
return client.substring(firstSlash + 1, secondSlash)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user