Add parsing to pricenode cmdline inputs

This commit is contained in:
Florian Reimair 2020-04-02 11:08:17 +02:00
parent a96bfd431d
commit 84be0da768
No known key found for this signature in database
GPG Key ID: 05634D8D7A7954C8

View File

@ -122,6 +122,8 @@ public class ProvidersRepository {
!bannedNodes.contains(e.replace("http://", "")
.replace("/", "")
.replace(".onion", "")))
.map(e -> e.endsWith("/") ? e : e + "/")
.map(e -> e.startsWith("http") ? e : "http://" + e)
.collect(Collectors.toList());
}
}