1- /* $Id: conffile.c,v 1.9 2005-11-04 05:15:47 rjkaes Exp $
1+ /* tinyproxy - A fast light-weight HTTP proxy
2+ * Copyright (C) 2004 Robert James Kaes <rjkaes@users.sourceforge.net>
23 *
3- * Parses the configuration file and sets up the config_s structure for
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; either version 2 of the License, or
7+ * (at your option) any later version.
8+ *
9+ * This program is distributed in the hope that it will be useful,
10+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ * GNU General Public License for more details.
13+ *
14+ * You should have received a copy of the GNU General Public License along
15+ * with this program; if not, write to the Free Software Foundation, Inc.,
16+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+ */
18+
19+ /* Parses the configuration file and sets up the config_s structure for
420 * use by the application. This file replaces the old grammar.y and
521 * scanner.l files. It takes up less space and _I_ think is easier to
622 * add new directives to. Who knows if I'm right though.
7- *
8- * Copyright (C) 2004 Robert James Kaes (rjkaes@users.sourceforge.net)
9- *
10- * This program is free software; you can redistribute it and/or modify it
11- * under the terms of the GNU General Public License as published by the
12- * Free Software Foundation; either version 2, or (at your option) any
13- * later version.
14- *
15- * This program is distributed in the hope that it will be useful, but
16- * WITHOUT ANY WARRANTY; without even the implied warranty of
17- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18- * General Public License for more details.
1923 */
2024
2125#include "tinyproxy.h"
@@ -773,7 +777,7 @@ HANDLE_FUNC(handle_upstream)
773777 }
774778
775779 safefree (ip );
776-
780+
777781 return 0 ;
778782}
779783
@@ -784,7 +788,7 @@ HANDLE_FUNC(handle_upstream_no)
784788
785789 domain = get_string_arg (line , & match [2 ]);
786790 if (!domain ) return -1 ;
787-
791+
788792 upstream_add (NULL , 0 , domain );
789793 safefree (domain );
790794
0 commit comments