Commit 444d0360 authored by Julien Muchembled's avatar Julien Muchembled

Update comment to suggest fallback to $XDG_CONFIG_HOME/hosts if HOSTS is unset

parent dc7a4a5c
......@@ -60,7 +60,8 @@ static void __attribute__ ((constructor)) init(void) {
original_fopen = dlsym_or_abort("fopen");
replacement_hosts = getenv("HOSTS");
if (!replacement_hosts)
/* XXX: warn ? fallback on $HOME/???/hosts ? */
/* IDEA: If HOSTS is not set, try $XDG_CONFIG_HOME/hosts
* and maybe warn if the latter does not exist. */
replacement_hosts = ORIGINAL_HOSTS_PATH;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment