release-0.11.6

This commit is contained in:
ansgarz 2022-06-07 19:47:47 +02:00
parent 201f296514
commit f4920b5786
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ apply plugin: "kotlinx-serialization"
group = "org.domaindrivenarchitecture.provs"
version = "0.11.6-SNAPSHOT"
version = "release-0.11.6"
repositories {
mavenCentral()

View file

@ -68,7 +68,7 @@ fun Prov.findIpForHostname(hostname: String): String? {
// check if ipText is valid
return try {
val ip: Any = InetAddress.getByName(ipText ?: "")
val ip = InetAddress.getByName(ipText ?: "")
return if (ip is Inet4Address || ip is Inet6Address) ipText else null
} catch (exception: UnknownHostException) {
null