do not limit client type to white list (#442)
This commit is contained in:
@@ -55,22 +55,12 @@ abstract class BasicEthLabelsDetector(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun clientType(client: String): String? {
|
private fun clientType(client: String): String? {
|
||||||
return if (client.contains("erigon", true)) {
|
val firstSlash = client.indexOf("/")
|
||||||
"erigon"
|
if (firstSlash == -1) {
|
||||||
} else if (client.contains("geth", true)) {
|
|
||||||
"geth"
|
|
||||||
} else if (client.contains("bor", true)) {
|
|
||||||
"bor"
|
|
||||||
} else if (client.contains("nethermind", true)) {
|
|
||||||
"nethermind"
|
|
||||||
} else if (client.contains("prysm", true)) {
|
|
||||||
"prysm"
|
|
||||||
} else if (client.contains("lighthouse", true)) {
|
|
||||||
"lighthouse"
|
|
||||||
} else {
|
|
||||||
log.debug("Unknown client type: {}", client)
|
log.debug("Unknown client type: {}", client)
|
||||||
null
|
return null
|
||||||
}
|
}
|
||||||
|
return client.substring(0, firstSlash).lowercase()
|
||||||
}
|
}
|
||||||
|
|
||||||
data class NodeTypeRequest(
|
data class NodeTypeRequest(
|
||||||
|
|||||||
Reference in New Issue
Block a user