~ubuntu-branches/ubuntu/precise/crossroads/precise

« back to all changes in this revision

Viewing changes to xr/config/adddeny.cc

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2010-07-05 16:27:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100705162700-0g08tfav8ee9y51u
Tags: upstream-2.65
ImportĀ upstreamĀ versionĀ 2.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "config"
 
2
 
 
3
void Config::adddeny (string d) {
 
4
    struct in_addr in;
 
5
    if (!inet_aton (d.c_str(), &in))
 
6
        throw Error("Bad deny-from specfier '" + d + "'");
 
7
    denylist.push_back (in);
 
8
}