mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 06:03:12 +00:00
Fixed keyring opening sequence for overlay mode.
This commit is contained in:
parent
baf9212c20
commit
faa2f5ef6c
6
server.c
6
server.c
@ -100,9 +100,6 @@ int recvwithttl(int sock,unsigned char *buffer,int bufferlen,int *ttl,
|
||||
|
||||
int server(char *backing_file,int foregroundMode)
|
||||
{
|
||||
/* Get backing store for HLR */
|
||||
getKeyring(backing_file);
|
||||
|
||||
if (overlayMode)
|
||||
{
|
||||
/* Now find and initialise all the suitable network interfaces, i.e.,
|
||||
@ -120,6 +117,9 @@ int server(char *backing_file,int foregroundMode)
|
||||
{
|
||||
/* Create a simple socket for listening on if we are not in overlay mesh mode. */
|
||||
createServerSocket();
|
||||
|
||||
/* Get backing store for keyring (overlay sets it up itself) */
|
||||
getKeyring(backing_file);
|
||||
}
|
||||
|
||||
/* Detach from the console */
|
||||
|
Loading…
Reference in New Issue
Block a user