aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r--src/libutil/addr.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 4a540fefc..1beeb421e 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -162,13 +162,7 @@ rspamd_ip_check_ipv6 (void)
if (stat ("/proc/net/dev", &st) != -1) {
if (stat ("/proc/net/if_inet6", &st) != -1) {
- if (st.st_size != 0) {
- ipv6_status = RSPAMD_IPV6_SUPPORTED;
- }
- else {
- /* Empty file, no ipv6 configuration at all */
- ipv6_status = RSPAMD_IPV6_UNSUPPORTED;
- }
+ ipv6_status = RSPAMD_IPV6_SUPPORTED;
}
else {
ipv6_status = RSPAMD_IPV6_UNSUPPORTED;