030-allow_bind_in_transparent_mode.patch 613 B

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