Changed readconnroute backend structure to simply maintain a pointer to the server rather than
include the hostname and port in the backend structure Fix to makefile for routing modules
This commit is contained in:
@ -25,9 +25,9 @@ TESTSRCS=testroute.c
|
||||
TESTOBJ=$(TESTSRCS:.c=.o)
|
||||
READCONSRCS=readconnroute.c
|
||||
READCONOBJ=$(READCONSRCS:.c=.o)
|
||||
DEBUGSRCS=debugcli.c
|
||||
DEBUGCLIOBJ=$(DEBUGSRCS:.c=.o)
|
||||
SRCS=$(TESTSRCS) $(READCONSRCS) $(DEBUGCLIOBJ)
|
||||
DEBUGCLISRCS=debugcli.c
|
||||
DEBUGCLIOBJ=$(DEBUGCLISRCS:.c=.o)
|
||||
SRCS=$(TESTSRCS) $(READCONSRCS) $(DEBUGCLISRCS)
|
||||
OBJ=$(SRCS:.c=.o)
|
||||
LIBS=-lssl
|
||||
MODULES=libtestroute.so libreadconnroute.so libdebugcli.so
|
||||
|
@ -147,9 +147,7 @@ int i, n;
|
||||
free(inst);
|
||||
return NULL;
|
||||
}
|
||||
inst->servers[n]->hostname = strdup(server->name);
|
||||
inst->servers[n]->protocol = strdup(server->protocol);
|
||||
inst->servers[n]->port = server->port;
|
||||
inst->servers[n]->server = server;
|
||||
inst->servers[n]->count = 0;
|
||||
n++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user