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:
|
libmbse.a:
|
||||||
Removed the fdn parameter from the attach and un_attach
|
Removed the fdn parameter from the attach and un_attach
|
||||||
functions, not needed anymore.
|
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:
|
libnodelist.a:
|
||||||
Fixed IP port override if there is a port added to a protocol.
|
Fixed IP port override if there is a port added to a protocol.
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
#include "mbselib.h"
|
#include "mbselib.h"
|
||||||
|
#include "users.h"
|
||||||
|
#include "mbsedb.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
@ -70,11 +72,8 @@ char *prepbuf(faddr *addr)
|
|||||||
*/
|
*/
|
||||||
if (addr && addr->domain && strlen(addr->domain)) {
|
if (addr && addr->domain && strlen(addr->domain)) {
|
||||||
domain = xstrcpy(addr->domain);
|
domain = xstrcpy(addr->domain);
|
||||||
} else
|
} else {
|
||||||
for (i = 0; i < 40; i++)
|
domain = xstrcpy(GetFidoDomain(addr->zone));
|
||||||
if (CFG.aka[i].zone == addr->zone) {
|
|
||||||
domain = xstrcpy(CFG.aka[i].domain);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((domain != NULL) && (strlen(CFG.aka[0].domain) != 0) && (strcasecmp(domain,CFG.aka[0].domain) != 0)) {
|
if ((domain != NULL) && (strlen(CFG.aka[0].domain) != 0) && (strcasecmp(domain,CFG.aka[0].domain) != 0)) {
|
||||||
|
Reference in New Issue
Block a user