summaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/rules
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-04 21:33:29 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-04 21:33:29 +0100
commita7de9a63f77faac8c535d1ab340bb5046f3955fd (patch)
tree780d42e58a353594310feebef45926d136c9e4da /src/main/java/io/trygvis/rules
parent4dcc43061d05f14ceddbb9f3a0c43ab908b89a4b (diff)
downloadrules-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/trygvis/rules')
-rw-r--r--src/main/java/io/trygvis/rules/acme/AcmeIo.java5
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);
}