Changeset 1759


Ignore:
Timestamp:
Mar 2, 2010, 7:31:11 PM (10 years ago)
Author:
alno
Message:

some config stuff for webif

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/globals.h

    r1755 r1759  
    650650    struct  s_ip *http_allowed;
    651651    int         http_readonly;
     652    in_addr_t   http_dynip;
     653    uchar       http_dyndns[64];
    652654#endif
    653655    int     c33_port;
  • trunk/oscam-config.c

    r1753 r1759  
    719719            return;
    720720        }
     721    }
     722
     723    if (!strcmp(token, "httpdyndns")) {
     724        cs_strncpy((char *)cfg->http_dyndns, value, sizeof(cfg->http_dyndns));
     725        return;
    721726    }
    722727
     
    17621767        }
    17631768        fputc((int)'\n', f);
     1769        fprintf_conf(f, CONFVARWIDTH, "httpdyndns", "%s\n", cfg->http_dyndns);
    17641770        fprintf_conf(f, CONFVARWIDTH, "httphideidleclients", "%d\n", cfg->http_hide_idle_clients);
    17651771        fprintf_conf(f, CONFVARWIDTH, "httpreadonly", "%d\n", cfg->http_readonly);
Note: See TracChangeset for help on using the changeset viewer.