diff --git a/src/org/ice4j/ice/harvest/AwsCandidateHarvester.java b/src/org/ice4j/ice/harvest/AwsCandidateHarvester.java
index b55e6f0..3577804 100644
--- a/src/org/ice4j/ice/harvest/AwsCandidateHarvester.java
+++ b/src/org/ice4j/ice/harvest/AwsCandidateHarvester.java
@@ -71,6 +71,7 @@ public class AwsCandidateHarvester
{
super(null, null);
}
+
/**
* Maps all candidates to this harvester's mask and adds them to
* component.
@@ -174,6 +175,34 @@ public class AwsCandidateHarvester
return true;
}
+ /**
+ * Returns the discovered public (mask) address, or null.
+ * @return the discovered public (mask) address, or null.
+ */
+ public static TransportAddress getMask()
+ {
+ if (smellsLikeAnEC2())
+ {
+ obtainEC2Addresses();
+ return mask;
+ }
+ return null;
+ }
+
+ /**
+ * Returns the discovered local (face) address, or null.
+ * @return the discovered local (face) address, or null.
+ */
+ public static TransportAddress getFace()
+ {
+ if (smellsLikeAnEC2())
+ {
+ obtainEC2Addresses();
+ return face;
+ }
+ return null;
+ }
+
/**
* Determines if there is a decent chance for the box executing this
* application to be an AWS EC2 instance and returns true if so.