diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-06-23 16:42:46 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-06-23 16:42:46 +0200 |
commit | 8d43f2cb9c49e814544fcaa115c4b08bbac297c3 (patch) | |
tree | 3fbdd9d9a9e27af47fdf9aa08d058c2d95b06deb /src/util | |
parent | 2f726a9edd6e3a0cdef639a3e7836eb498d0b30c (diff) | |
parent | b9e4bb72104b4871bf4443fc8a8fbb21d8c1944c (diff) | |
download | gnunet-8d43f2cb9c49e814544fcaa115c4b08bbac297c3.tar.gz gnunet-8d43f2cb9c49e814544fcaa115c4b08bbac297c3.zip |
Merge branch 'master' of git+ssh://gnunet.org/gnunet
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/resolver_api.c | 5 | ||||
-rw-r--r-- | src/util/util.conf | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index b2e6a4986..afebabf08 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -180,6 +180,11 @@ check_config () | |||
180 | struct sockaddr_in v4; | 180 | struct sockaddr_in v4; |
181 | struct sockaddr_in6 v6; | 181 | struct sockaddr_in6 v6; |
182 | 182 | ||
183 | if (GNUNET_OK == | ||
184 | GNUNET_CONFIGURATION_have_value (resolver_cfg, | ||
185 | "resolver", | ||
186 | "UNIXPATH")) | ||
187 | return GNUNET_OK; | ||
183 | memset (&v4, 0, sizeof (v4)); | 188 | memset (&v4, 0, sizeof (v4)); |
184 | v4.sin_addr.s_addr = htonl (INADDR_LOOPBACK); | 189 | v4.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
185 | v4.sin_family = AF_INET; | 190 | v4.sin_family = AF_INET; |
diff --git a/src/util/util.conf b/src/util/util.conf index f2e5bee28..dbc2b2e0d 100644 --- a/src/util/util.conf +++ b/src/util/util.conf | |||
@@ -25,7 +25,7 @@ GNUNET_CACHE_HOME = ${XDG_CACHE_HOME:-$GNUNET_HOME/.cache}/gnunet/ | |||
25 | 25 | ||
26 | # Runtime data (i.e UNIX domain sockets, locks, always lost on system boot) | 26 | # Runtime data (i.e UNIX domain sockets, locks, always lost on system boot) |
27 | # This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR | 27 | # This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR |
28 | # for per-user services (where USER_SERVICE=YES is set) | 28 | # for per-user services (where RUN_PER_USER=YES is set) |
29 | # Note that the 'gnunet'/system user must have $TMPDIR/$TMP set to | 29 | # Note that the 'gnunet'/system user must have $TMPDIR/$TMP set to |
30 | # exactly the same values as 'normal' users, otherwise this will fail. | 30 | # exactly the same values as 'normal' users, otherwise this will fail. |
31 | # If $TMPDIR or $TMP are set to different directories for different | 31 | # If $TMPDIR or $TMP are set to different directories for different |