diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-06-06 20:26:13 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-06-06 20:26:13 +0000 |
commit | a72fc7ad09955713f20f5f2bd35575fe06474a2c (patch) | |
tree | 60a18b4a1fd8d2950c2c2ddc0c6ed9c5aa006bad /src | |
parent | 2b5a3625bcfa1278a998038675d7bf7a693fa6bc (diff) | |
download | tinyproxy-a72fc7ad09955713f20f5f2bd35575fe06474a2c.tar.gz tinyproxy-a72fc7ad09955713f20f5f2bd35575fe06474a2c.zip |
Added a warning message to the Bind directive stating that it will be ignored if "transparent proxy" has been compiled into tinyproxy.
Diffstat (limited to 'src')
-rw-r--r-- | src/grammar.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/grammar.y b/src/grammar.y index 91a950f..a9953b4 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -1,4 +1,4 @@ -/* $Id: grammar.y,v 1.13 2002-05-27 01:52:44 rjkaes Exp $ +/* $Id: grammar.y,v 1.14 2002-06-06 20:26:13 rjkaes Exp $ * * This is the grammar for tinyproxy's configuration file. It needs to be * in sync with scanner.l. If you know more about yacc and lex than I do @@ -171,8 +171,12 @@ statement | KW_CONNECTPORT NUMBER { add_connect_port_allowed($2); } | KW_BIND NUMERIC_ADDRESS { +#ifndef TRANSPARENT_PROXY log_message(LOG_INFO, "Binding outgoing connections to %s", $2); config.bind_address = $2; +#else + log_message(LOG_WARNING, "The 'Bind' directive can not be used with transparent proxy support. Ignoring the directive."); +#endif } ; |