Changeset 1702
- Timestamp:
- 02/26/10 09:55:39 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r1701 r1702 603 603 struct s_config 604 604 { 605 int 606 int 605 int nice; 606 int debuglvl; 607 607 ulong netprio; 608 608 ulong ctimeout; 609 609 ulong ftimeout; 610 610 ulong cmaxidle; 611 int 611 int ulparent; 612 612 ulong delay; 613 int 614 int 615 int 613 int bindwait; 614 int resolvedelay; 615 int tosleep; 616 616 in_addr_t srvip; 617 617 char *pidfile; … … 619 619 char *cwlogdir; 620 620 char *logfile; 621 int 622 int 623 struct s_auth *account;624 struct s_srvid *srvid;621 int disablelog; 622 int usrfileflag; 623 struct s_auth *account; 624 struct s_srvid *srvid; 625 625 struct s_sidtab *sidtab; 626 int 626 int mon_port; 627 627 in_addr_t mon_srvip; 628 struct s_ip *mon_allowed;629 int 630 int 631 int 628 struct s_ip *mon_allowed; 629 int mon_aulow; 630 int mon_hideclient_to; 631 int mon_level; 632 632 #ifdef WEBIF 633 633 int http_port; … … 637 637 char http_tpl[128]; 638 638 char http_script[128]; 639 int http_refresh; 640 int http_hide_idle_clients; 641 #endif 642 int c33_port; 639 int http_refresh; 640 int http_hide_idle_clients; 641 struct s_ip *http_allowed; 642 #endif 643 int c33_port; 643 644 in_addr_t c33_srvip; 644 645 uchar c33_key[16]; 645 int 646 int 647 struct s_ip *c33_plain;648 int 646 int c33_crypted; 647 int c33_passive; 648 struct s_ip *c33_plain; 649 int c35_port; 649 650 in_addr_t c35_srvip; 650 int 651 int c35_suppresscmd08; 651 652 PTAB c35_tcp_ptab; 652 653 in_addr_t c35_tcp_srvip; … … 654 655 in_addr_t ncd_srvip; 655 656 uchar ncd_key[16]; 656 int 657 struct s_ip *ncd_allowed;657 int ncd_keepalive; 658 struct s_ip *ncd_allowed; 658 659 PTAB cc_ptab; 659 int 660 int rad_port; 660 661 in_addr_t rad_srvip; 661 int 662 int 662 int cc_port; 663 int cc_reshare; 663 664 in_addr_t cc_srvip; 664 665 uchar cc_version[7]; … … 668 669 char ser_device[512]; 669 670 ulong srtimeout; // SerialReaderTimeount in millisec 670 int 671 int 672 int 671 int max_log_size; 672 int waitforcards; 673 int preferlocalcards; 673 674 #ifdef CS_WITH_GBOX 674 675 uchar gbox_pwd[8]; … … 676 677 uchar cardfile[128]; 677 678 uchar gbxShareOnl[128]; 678 int 679 int 680 unsigned long locals[CS_MAXLOCALS];679 int maxdist; 680 int num_locals; 681 unsigned long locals[CS_MAXLOCALS]; 681 682 #endif 682 683 //struct s_irdeto_quess *itab[0xff]; -
trunk/oscam-config.c
r1701 r1702 693 693 } else { 694 694 cfg->http_hide_idle_clients=atoi(value); 695 return; 696 } 697 } 698 699 if (!strcmp(token, "httpallowed")) { 700 if(strlen(value) == 0) { 701 clear_sip(&cfg->http_allowed); 702 return; 703 } else { 704 chk_iprange(value, &cfg->http_allowed); 695 705 return; 696 706 } -
trunk/oscam-http.c
r1693 r1702 1483 1483 in_addr_t addr = cs_inet_order(in.s_addr); 1484 1484 1485 for (p_ip = cfg-> mon_allowed; (p_ip) && (!ok); p_ip = p_ip->next)1485 for (p_ip = cfg->http_allowed; (p_ip) && (!ok); p_ip = p_ip->next) 1486 1486 ok =((addr >= p_ip->ip[0]) && (addr <= p_ip->ip[1])); 1487 1487 if (!ok){
Note:
See TracChangeset
for help on using the changeset viewer.