+ new way to retrieve integers from templates (bstr, pref...)
[citadel.git] / webcit / inetconf.c
index 5e0bd5b11403f45604577734de56451748c308ce..1d3c68beb3918c3c75963664a170cf5f349321e7 100644 (file)
@@ -197,8 +197,8 @@ HashList *GetInetConfHash(StrBuf *Target, WCTemplputParams *TP)
 
        if (WCC->InetCfg == NULL)
                load_inetconf();
-       GetHash(WCC->InetCfg, TKEY(2), &vHash);
-       svprintf(HKEY("SERVCFG:INET:TYPE"), WCS_STRING, TP->Tokens->Params[2]->Start);
+       GetHash(WCC->InetCfg, TKEY(5), &vHash);
+       svprintf(HKEY("SERVCFG:INET:TYPE"), WCS_STRING, TP->Tokens->Params[5]->Start);
        return vHash;
 }