reconnect_keep_trying default value to TRUE.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 9 Mar 2004 15:51:06 +0000 (15:51 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 9 Mar 2004 15:51:06 +0000 (15:51 +0000)
CHANGES
apps/silcd/serverconfig.c

diff --git a/CHANGES b/CHANGES
index c30eed16b8e400ef7bf2fe2a0f49757267aad582..bc8cdf6dc37c170b57d0f31646a7022174183854 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -8,6 +8,10 @@ Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
        * Clarified the connections_max meaning in General section
          in doc/example_silcd.conf.in.
 
+       * The reconnect_keep_trying default value set to TRUE
+         if it is not defined in the config file.  Affected file
+         silcd/serverconfig.c.
+
 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed crashbug in connection closing, after a protocol
index 830ea5a64a164267caa7c22cec3c07d086082b22..26e78ae9c6719a8fd71e17f16d3661d7687d78c6 100644 (file)
@@ -730,7 +730,10 @@ SILC_CONFIG_CALLBACK(fetch_connparam)
     config->tmp = NULL;
     return SILC_CONFIG_OK;
   }
-  SILC_SERVER_CONFIG_ALLOCTMP(SilcServerConfigConnParams);
+  if (!tmp) {
+    SILC_SERVER_CONFIG_ALLOCTMP(SilcServerConfigConnParams);
+    tmp->reconnect_keep_trying = TRUE;
+  }
 
   if (!strcmp(name, "name")) {
     CONFIG_IS_DOUBLE(tmp->name);
@@ -1448,6 +1451,7 @@ SilcServerConfig silc_server_config_alloc(const char *filename)
   /* general config defaults */
   config_new->refcount = 1;
   config_new->logging_timestamp = TRUE;
+  config_new->param.reconnect_keep_trying = TRUE;
 
   /* obtain a config file object */
   file = silc_config_open(filename);