release-0.11.6

merge-requests/1/merge release-0.11.6
ansgarz 2 years ago
parent 201f296514
commit f4920b5786

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

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

Loading…
Cancel
Save