Merge pull request #4112 from freimair/input_parsing

Add parsing to pricenode cmdline inputs
This commit is contained in:
Christoph Atteneder 2020-04-02 16:07:52 +02:00 committed by GitHub
commit 0a22f46ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());
}
}