From 64221faef859c51b67190f74a3b8d1173d56cd43 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 19 Oct 2003 19:54:14 +0000 Subject: Do basic exit node filtering --- .../fancydress/directory/ServerDescriptor.java | 18 ++++++++++++++ src/org/noreply/fancydress/type3/Payload.java | 28 +++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/org/noreply/fancydress/directory/ServerDescriptor.java b/src/org/noreply/fancydress/directory/ServerDescriptor.java index 4c0cba1..4bb866c 100644 --- a/src/org/noreply/fancydress/directory/ServerDescriptor.java +++ b/src/org/noreply/fancydress/directory/ServerDescriptor.java @@ -354,4 +354,22 @@ public class ServerDescriptor { return outgoingMMTPSection; } + /** + * Get the Delivery/MBOX section. + * + * @return this server descriptor's Delivery/MBOX section + */ + public DeliveryMBOXSection getDeliveryMBOXSection() { + return deliveryMBOXSection; + } + + /** + * Get the Delivery/SMTP section. + * + * @return this server descriptor's Delivery/SMTP section + */ + public DeliverySMTPSection getDeliverySMTPSection() { + return deliverySMTPSection; + } + } diff --git a/src/org/noreply/fancydress/type3/Payload.java b/src/org/noreply/fancydress/type3/Payload.java index 0294537..30464ca 100644 --- a/src/org/noreply/fancydress/type3/Payload.java +++ b/src/org/noreply/fancydress/type3/Payload.java @@ -2,8 +2,10 @@ package org.noreply.fancydress.type3; import java.io.*; +import java.util.*; import java.util.zip.*; import org.noreply.fancydress.crypto.*; +import org.noreply.fancydress.status.*; import org.noreply.fancydress.directory.*; import org.noreply.fancydress.misc.Util; import org.noreply.fancydress.type3.routing.*; @@ -80,7 +82,31 @@ public class Payload { } public Server[] filterExithops(Server[] s) { - return s; + /* FIXME: needs to be updated once we support fragmentation and stuff */ + /* FIXME: needFrom needs to be done */ + RoutingDestination r = route[0]; + ArrayList list = new ArrayList(); + for (int i=0; i