From 62d489130cefb6078bb69afdfe0c4896df642d84 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Fri, 13 Mar 2009 01:10:13 +0100 Subject: [PATCH] Dont do double I4/I6 records. Signed-off-by: Jan Vidar Krey --- src/inf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inf.c b/src/inf.c index 4ee9625..b680678 100644 --- a/src/inf.c +++ b/src/inf.c @@ -209,12 +209,14 @@ int check_network(struct user* user, struct adc_message* cmd) { adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV6_ADDR); adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV6_UDP_PORT); + adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR); adc_msg_add_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR, address); } else if (strchr(address, ':')) { adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_ADDR); adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV4_UDP_PORT); + adc_msg_remove_named_argument(cmd, ADC_INF_FLAG_IPV6_ADDR); adc_msg_add_named_argument(cmd, ADC_INF_FLAG_IPV6_ADDR, address); } return 0;