Changeset 7434
- Timestamp:
- 09/14/12 17:53:16 (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r7433 r7434 1323 1323 #endif 1324 1324 IN_ADDR_T dynip; 1325 uchar dyndns[64];1325 char *dyndns; 1326 1326 time_t expirationdate; 1327 1327 time_t firstlogin; -
trunk/module-webif.c
r7432 r7434 1949 1949 1950 1950 //Hostname 1951 tpl_addVar(vars, TPLADD, "DYNDNS", (char *)account->dyndns);1951 tpl_addVar(vars, TPLADD, "DYNDNS", account->dyndns); 1952 1952 1953 1953 //Uniq -
trunk/oscam-config.c
r7433 r7434 830 830 DEF_OPT_STR("description" , OFS(description), NULL ), 831 831 #endif 832 DEF_OPT_S STR("hostname" , OFS(dyndns), "", SIZEOF(dyndns)),832 DEF_OPT_STR("hostname" , OFS(dyndns), NULL ), 833 833 DEF_OPT_FUNC("caid" , OFS(ctab), check_caidtab_fn ), 834 834 DEF_OPT_INT("uniq" , OFS(uniq), 0 ), … … 1591 1591 struct s_auth *ptr_next; 1592 1592 ptr_next = ptr->next; 1593 config_list_free_values(account_opts, &ptr); 1593 1594 ll_destroy(ptr->aureader_list); 1594 1595 ptr->next = NULL; -
trunk/oscam.c
r7432 r7434 1408 1408 If the hostname is not configured, the ip is set to 0. */ 1409 1409 void cs_user_resolve(struct s_auth *account){ 1410 if (account->dyndns [0]){1410 if (account->dyndns) { 1411 1411 IN_ADDR_T lastip; 1412 1412 IP_ASSIGN(lastip, account->dynip); 1413 1413 #ifdef IPV6SUPPORT 1414 cs_getIPv6fromHost( (char*)account->dyndns, &account->dynip, NULL);1414 cs_getIPv6fromHost(account->dyndns, &account->dynip, NULL); 1415 1415 #else 1416 account->dynip = cs_getIPfromHost( (char*)account->dyndns);1416 account->dynip = cs_getIPfromHost(account->dyndns); 1417 1417 #endif 1418 1418 1419 1419 if (!IP_EQUAL(lastip, account->dynip)) { 1420 cs_log("%s: resolved ip=%s", (char*)account->dyndns, cs_inet_ntoa(account->dynip));1420 cs_log("%s: resolved ip=%s", account->dyndns, cs_inet_ntoa(account->dynip)); 1421 1421 } 1422 1422 } else set_null_ip(&account->dynip); … … 1740 1740 break; 1741 1741 default: // grant/check access 1742 if (IP_ISSET(client->ip) && account->dyndns [0]) {1742 if (IP_ISSET(client->ip) && account->dyndns) { 1743 1743 if (!IP_EQUAL(client->ip, account->dynip)) 1744 1744 cs_user_resolve(account);
Note:
See TracChangeset
for help on using the changeset viewer.