Browse Source

Allow authorized IP without forwarded

Issue: #488
tags/1.1.1
Vsevolod Stakhov 8 years ago
parent
commit
319d3bfc5c
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/controller.c

+ 2
- 0
src/controller.c View File

@@ -416,6 +416,7 @@ static gboolean rspamd_controller_check_password(
else if (ret == 0) {
/* No forwarded found */
msg_info_session ("allow unauthorized connection from a unix socket");
return TRUE;
}
}
else if (ctx->secure_map
@@ -430,6 +431,7 @@ static gboolean rspamd_controller_check_password(
/* No forwarded found */
msg_info_session ("allow unauthorized connection from a trusted IP %s",
rspamd_inet_address_to_string (session->from_addr));
return TRUE;
}
}


Loading…
Cancel
Save