From 924f40c4e0cdad8879f3811c921e06fd8f8895ba Mon Sep 17 00:00:00 2001 From: bgrozev Date: Tue, 8 Jun 2021 12:06:56 +0300 Subject: [PATCH] config: Fix static mapping property names (reported by @DoM1niC). (#230) --- src/main/kotlin/org/ice4j/ice/harvest/HarvestConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/ice4j/ice/harvest/HarvestConfig.kt b/src/main/kotlin/org/ice4j/ice/harvest/HarvestConfig.kt index 5580da7..1e9ffb7 100644 --- a/src/main/kotlin/org/ice4j/ice/harvest/HarvestConfig.kt +++ b/src/main/kotlin/org/ice4j/ice/harvest/HarvestConfig.kt @@ -86,7 +86,7 @@ class HarvestConfig { private val staticMappingsFromNewConfig: Set by config { "ice4j.harvest.mapping.static-mappings".from(configSource) .convertFrom> { cfg -> - cfg.map { StaticMapping(it.getString("localAddress"), it.getString("publicAddress")) }.toSet() + cfg.map { StaticMapping(it.getString("local-address"), it.getString("public-address")) }.toSet() } }