0006-fix_default_config_location.patch 551 B

1234567891011121314151617
  1. Description: change the default config file location
  2. redsocks by default looks for ./redsocks.conf. Change this to
  3. /etc/redsocks.conf for a more deterministic behaviour.
  4. Author: Apollon Oikonomopoulos <apoikos@gmail.com>
  5. Forwared: no
  6. Last-Update: 2013-04-23
  7. --- a/main.c
  8. +++ b/main.c
  9. @@ -39,7 +39,7 @@ app_subsys *subsystems[] = {
  10. &dnstc_subsys,
  11. };
  12. -static const char *confname = "redsocks.conf";
  13. +static const char *confname = "/etc/redsocks.conf";
  14. static const char *pidfile = NULL;
  15. static void terminate(int sig, short what, void *_arg)