config: Fix static mapping property names (reported by @DoM1niC). (#230)

This commit is contained in:
bgrozev 2021-06-08 12:06:56 +03:00 committed by GitHub
parent 2586d8b2da
commit 924f40c4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ class HarvestConfig {
private val staticMappingsFromNewConfig: Set<StaticMapping> by config {
"ice4j.harvest.mapping.static-mappings".from(configSource)
.convertFrom<List<Config>> { cfg ->
cfg.map { StaticMapping(it.getString("localAddress"), it.getString("publicAddress")) }.toSet()
cfg.map { StaticMapping(it.getString("local-address"), it.getString("public-address")) }.toSet()
}
}