diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-04 21:33:29 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-01-04 21:33:29 +0100 |
commit | a7de9a63f77faac8c535d1ab340bb5046f3955fd (patch) | |
tree | 780d42e58a353594310feebef45926d136c9e4da /src/main/java/io | |
parent | 4dcc43061d05f14ceddbb9f3a0c43ab908b89a4b (diff) | |
download | rules-sandbox-a7de9a63f77faac8c535d1ab340bb5046f3955fd.tar.gz rules-sandbox-a7de9a63f77faac8c535d1ab340bb5046f3955fd.tar.bz2 rules-sandbox-a7de9a63f77faac8c535d1ab340bb5046f3955fd.tar.xz rules-sandbox-a7de9a63f77faac8c535d1ab340bb5046f3955fd.zip |
VPN work.
Finding all connections for a VPN host.
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/trygvis/rules/acme/AcmeIo.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/rules/acme/AcmeIo.java b/src/main/java/io/trygvis/rules/acme/AcmeIo.java index 0bd0f1e..498a4a6 100644 --- a/src/main/java/io/trygvis/rules/acme/AcmeIo.java +++ b/src/main/java/io/trygvis/rules/acme/AcmeIo.java @@ -57,6 +57,7 @@ public class AcmeIo { dump(s, factHandles, (o) -> true); } + // This should just sort by all getters instead. static class FactCollection<T> { public final Class<T> type; public final List<T> values; @@ -74,6 +75,10 @@ public class AcmeIo { } if (comparator == null) { + comparator = comparable(type, "fqdn"); + } + + if (comparator == null) { comparator = Comparator.comparingInt(System::identityHashCode); } |