First Commit
[librecmc/package-feed.git] / net / tinyproxy / patches / 030-allow_bind_in_transparent_mode.patch
1 --- a/src/conf.c
2 +++ b/src/conf.c
3 @@ -865,7 +865,6 @@ static HANDLE_FUNC (handle_deny)
4  
5  static HANDLE_FUNC (handle_bind)
6  {
7 -#ifndef TRANSPARENT_PROXY
8          int r = set_string_arg (&conf->bind_address, line, &match[2]);
9  
10          if (r)
11 @@ -873,11 +872,6 @@ static HANDLE_FUNC (handle_bind)
12          log_message (LOG_INFO,
13                       "Outgoing connections bound to IP %s", conf->bind_address);
14          return 0;
15 -#else
16 -        fprintf (stderr,
17 -                 "\"Bind\" cannot be used with transparent support enabled.\n");
18 -        return 1;
19 -#endif
20  }
21  
22  static HANDLE_FUNC (handle_listen)