Show
Ignore:
Timestamp:
09/20/03 14:20:38 (10 years ago)
Author:
ahu
Message:

mostly work on delegation-only, debian patches

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdns_recursor.cc

    r180 r186  
    172172    of<<getpid()<<endl; 
    173173  else 
    174     L<<Logger::Error<<"Requested to write pid for "<<getpid()<<" to "<<fname<<"failed: "<<strerror(errno)<<endl; 
     174    L<<Logger::Error<<"Requested to write pid for "<<getpid()<<" to "<<fname<<" failed: "<<strerror(errno)<<endl; 
    175175} 
    176176 
     
    447447    arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR; 
    448448    arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 
     449    arg().set("delegation-only","Which domains we only accept delegations from")=""; 
    449450    arg().setCmd("help","Provide a helpful message"); 
    450451    L.toConsole(Logger::Warning); 
     
    458459 
    459460    arg().parse(argc,argv); 
     461 
     462    arg().set("delegation-only")=toLower(arg()["delegation-only"]); 
    460463 
    461464    if(arg().mustDo("help")) { 
     
    474477    makeTCPServerSocket(); 
    475478         
     479 
     480 
    476481    char data[1500]; 
    477482    struct sockaddr_in fromaddr;