$Log$
+ Revision 610.5 2003/09/02 04:04:39 ajc
+ * Don't try to directly spool to non-neighbor nodes
+
Revision 610.4 2003/08/29 08:21:57 ajc
* Do network runs more proactively. The inbound queue is now scanned
every minute instead of every poll frequency.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
char filename[SIZ];
FILE *fp;
char buf[SIZ];
+ char nexthop[SIZ];
/* Set default target room to trash */
strcpy(target_room, TWITROOM);
if (strcasecmp(msg->cm_fields['D'], config.c_nodename)) {
/* route the message */
- if (is_valid_node(NULL, NULL,
+ strcpy(nexthop, "");
+ if (is_valid_node(nexthop, NULL,
msg->cm_fields['D']) == 0) {
/* prepend our node to the path */
serialize_message(&sermsg, msg);
/* now send it */
+ if (strlen(nexthop) == 0) {
+ strcpy(nexthop, msg->cm_fields['D']);
+ }
snprintf(filename, sizeof filename,
- "./network/spoolout/%s",
- msg->cm_fields['D']);
+ "./network/spoolout/%s", nexthop);
fp = fopen(filename, "ab");
if (fp != NULL) {
fwrite(sermsg.ser,