release-0.11.6
This commit is contained in:
parent
201f296514
commit
f4920b5786
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ apply plugin: "kotlinx-serialization"
|
|||
|
||||
|
||||
group = "org.domaindrivenarchitecture.provs"
|
||||
version = "0.11.6-SNAPSHOT"
|
||||
version = "release-0.11.6"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue