Changeset 7612
- Timestamp:
- 08/03/07 18:24:20 (6 years ago)
- Location:
- src/router/httpd/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/modules/dd-wrt.c
r7611 r7612 6098 6098 if (ejArgs (argc, argv, "%d", &index) < 1) 6099 6099 { 6100 fprintf(stderr,"argument problem wdsp2p\n");6101 6100 websError (wp, 400, "Insufficient args\n"); 6102 6101 return; … … 6133 6132 netmask[3] = 252; 6134 6133 } 6135 fprintf(stderr,"is %s = 1?\n",nvramvar);6136 6134 6137 6135 if (nvram_match (nvramvar, "1")) … … 6186 6184 sprintf (wds_enable_var, "%s_wds%d_enable", interface, h); 6187 6185 wds_enable_val = websGetVar (wp, wds_enable_var, NULL); 6188 fprintf(stderr,"wds save %s -> %s\n",wds_enable_var,wds_enable_val);6189 6186 nvram_set (wds_enable_var, wds_enable_val); 6190 6187 } -
src/router/httpd/modules/ddns.c
r7611 r7612 234 234 for (i=0;i<20;i++) 235 235 sprintf(request,"%s%x",request,final[i]); 236 system("rm -f /tmp/.hash"); 236 237 sprintf(request2,"wget \"http://freedns.afraid.org/api/?action=getdyndns&sha=%s\" -O /tmp/.hash",request); 237 238 system(request2); … … 239 240 if (in==NULL) 240 241 return NULL; 241 while(getc(in)!='?' );242 while(getc(in)!='?' && feof(in)==0); 242 243 i=0; 243 244 char *hash=malloc(64); … … 421 422 { 422 423 char hostn[128]; 423 char *hash=request_freedns(username, passwd);424 char *hash=request_freedns(username,nvram_safe_get(_passwd)); 424 425 if (hash) 425 426 {
Note: See TracChangeset
for help on using the changeset viewer.
