From 8d69127bf89691cec365780ccc10d6ee5be7332e Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Wed, 24 Nov 2004 10:00:18 +0000 Subject: Alfredo's no_proxy patch Author: jgg Date: 2001-02-23 05:46:02 GMT Alfredo's no_proxy patch --- python/string.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'python/string.cc') diff --git a/python/string.cc b/python/string.cc index 7564899b..5ad7fddb 100644 --- a/python/string.cc +++ b/python/string.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: string.cc,v 1.1 2001/02/20 06:32:01 jgg Exp $ +// $Id: string.cc,v 1.2 2001/02/23 05:46:02 jgg Exp $ /* ###################################################################### string - Mappings for the string functions that are worthwile for @@ -93,4 +93,14 @@ PyObject *StrStrToTime(PyObject *Self,PyObject *Args) return Py_BuildValue("i",Result); } + +PyObject *StrCheckDomainList(PyObject *Self,PyObject *Args) +{ + char *Host = 0; + char *List = 0; + if (PyArg_ParseTuple(Args,"ss",&Host,&List) == 0) + return 0; + return Py_BuildValue("i",CheckDomainList(Host,List)); +} + /*}}}*/ -- cgit v1.2.3