Added SilcIDListData structure and added it to ClientEntry and
[silc.git] / apps / silcd / serverconfig.c
index 25c562f49df47c8f713b5d72637685432090bd94..ffc7e118ab474d1ccc88a71b3d4f033d67eaf081 100644 (file)
 
        Format:
 
-       +<Remote address or name>:<auth method>:<password/key/???>:<Port>:<Version ID>:<Class>
+       +<Remote address or name>:<auth method>:<password/key/???>:
+       <Port>:<Version ID>:<Class>:<Initiator>
 
    <DenyConnection>
 
@@ -169,7 +170,7 @@ SilcConfigServerSection silc_config_server_sections[] = {
   { "[ServerConnection]", 
     SILC_CONFIG_SERVER_SECTION_TYPE_SERVER_CONNECTION, 6 },
   { "[RouterConnection]", 
-    SILC_CONFIG_SERVER_SECTION_TYPE_ROUTER_CONNECTION, 6 },
+    SILC_CONFIG_SERVER_SECTION_TYPE_ROUTER_CONNECTION, 7 },
   { "[AdminConnection]", 
     SILC_CONFIG_SERVER_SECTION_TYPE_ADMIN_CONNECTION, 5 },
   { "[DenyConnection]", 
@@ -900,6 +901,17 @@ int silc_config_server_parse_lines(SilcConfigServer config,
        silc_free(tmp);
       }
 
+      /* Get whether we are initiator or not */
+      ret = silc_config_get_token(line, &tmp);
+      if (ret < 0)
+       break;
+      if (ret) {
+       config->routers->initiator = atoi(tmp);
+       if (config->routers->initiator != 0)
+         config->routers->initiator = TRUE;
+       silc_free(tmp);
+      }
+
       check = TRUE;
       checkmask |= (1L << pc->section->type);
       break;