Fixed 5d address names when zone is different then our own
This commit is contained in:
parent
c4e7b8a6fc
commit
90a0614a7f
@ -11,6 +11,8 @@ v0.61.3 25-Jul-2004
|
||||
libmbse.a:
|
||||
Removed the fdn parameter from the attach and un_attach
|
||||
functions, not needed anymore.
|
||||
Fixed function to return full 5d address in the outbound when
|
||||
the address is in a different zone then our own zone.
|
||||
|
||||
libnodelist.a:
|
||||
Fixed IP port override if there is a port added to a protocol.
|
||||
|
@ -30,6 +30,8 @@
|
||||
|
||||
#include "../config.h"
|
||||
#include "mbselib.h"
|
||||
#include "users.h"
|
||||
#include "mbsedb.h"
|
||||
|
||||
|
||||
#ifndef PATH_MAX
|
||||
@ -70,12 +72,9 @@ char *prepbuf(faddr *addr)
|
||||
*/
|
||||
if (addr && addr->domain && strlen(addr->domain)) {
|
||||
domain = xstrcpy(addr->domain);
|
||||
} else
|
||||
for (i = 0; i < 40; i++)
|
||||
if (CFG.aka[i].zone == addr->zone) {
|
||||
domain = xstrcpy(CFG.aka[i].domain);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
domain = xstrcpy(GetFidoDomain(addr->zone));
|
||||
}
|
||||
|
||||
if ((domain != NULL) && (strlen(CFG.aka[0].domain) != 0) && (strcasecmp(domain,CFG.aka[0].domain) != 0)) {
|
||||
if ((p = strrchr(buf,'/')))
|
||||
|
Reference in New Issue
Block a user