From 420b2c9a104d9aa7c232345614b8103292600678 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 24 Dec 2007 18:24:23 +0100 Subject: [PATCH] Remove dot_in_ip6_addr config option. --- doc/example.conf | 1 - doc/reference.conf | 6 ------ include/s_conf.h | 1 - modules/m_info.c | 6 ------ src/listener.c | 7 ------- src/newconf.c | 1 - src/s_user.c | 5 ----- 7 files changed, 27 deletions(-) diff --git a/doc/example.conf b/doc/example.conf index 5282b17..6f66957 100755 --- a/doc/example.conf +++ b/doc/example.conf @@ -381,7 +381,6 @@ general { default_floodcount = 10; failed_oper_notice = yes; dots_in_ident=2; - dot_in_ip6_addr = no; min_nonwildcard = 4; min_nonwildcard_simple = 3; max_accept = 100; diff --git a/doc/reference.conf b/doc/reference.conf index 7b35978..4d96ae3 100755 --- a/doc/reference.conf +++ b/doc/reference.conf @@ -833,12 +833,6 @@ general { */ dots_in_ident=2; - /* dot in ipv6: ircd-hybrid-6.0 and earlier will disallow hosts - * without a '.' in them. this will add one to the end. only needed - * for older servers. - */ - dot_in_ip6_addr = no; - /* min nonwildcard: the minimum non wildcard characters in k/d/g lines * placed via the server. klines hand placed are exempt from limits. * wildcard chars: '.' '*' '?' '@' diff --git a/include/s_conf.h b/include/s_conf.h index 2b69e6a..a89c4b6 100644 --- a/include/s_conf.h +++ b/include/s_conf.h @@ -186,7 +186,6 @@ struct config_file_entry unsigned char compression_level; int disable_fake_channels; - int dot_in_ip6_addr; int dots_in_ident; int failed_oper_notice; int anti_nick_flood; diff --git a/modules/m_info.c b/modules/m_info.c index 6468f82..77fe0bd 100644 --- a/modules/m_info.c +++ b/modules/m_info.c @@ -170,12 +170,6 @@ static struct InfoStruct info_table[] = { &ConfigFileEntry.disable_fake_channels, "Controls whether bold etc are disabled for JOIN" }, - { - "dot_in_ip6_addr", - OUTPUT_BOOLEAN, - &ConfigFileEntry.dot_in_ip6_addr, - "Suffix a . to ip6 addresses", - }, { "dots_in_ident", OUTPUT_DECIMAL, diff --git a/src/listener.c b/src/listener.c index 953f2b3..ec676e8 100644 --- a/src/listener.c +++ b/src/listener.c @@ -465,13 +465,6 @@ add_connection(listener_t *listener, int fd, struct sockaddr *sai, int exempt) strlcpy(new_client->host, new_client->sockhost, sizeof(new_client->host)); -#ifdef IPV6 - if(new_client->localClient->ip.ss_family == AF_INET6 && ConfigFileEntry.dot_in_ip6_addr == 1) - { - strlcat(new_client->host, ".", sizeof(new_client->host)); - } -#endif - new_client->localClient->fd = fd; new_client->localClient->listener = listener; diff --git a/src/newconf.c b/src/newconf.c index e6a549a..bf33a0f 100644 --- a/src/newconf.c +++ b/src/newconf.c @@ -2011,7 +2011,6 @@ static struct ConfEntry conf_general_table[] = { "connect_timeout", CF_TIME, NULL, 0, &ConfigFileEntry.connect_timeout }, { "default_floodcount", CF_INT, NULL, 0, &ConfigFileEntry.default_floodcount }, { "disable_auth", CF_YESNO, NULL, 0, &ConfigFileEntry.disable_auth }, - { "dot_in_ip6_addr", CF_YESNO, NULL, 0, &ConfigFileEntry.dot_in_ip6_addr }, { "dots_in_ident", CF_INT, NULL, 0, &ConfigFileEntry.dots_in_ident }, { "failed_oper_notice", CF_YESNO, NULL, 0, &ConfigFileEntry.failed_oper_notice }, { "glines", CF_YESNO, NULL, 0, &ConfigFileEntry.glines }, diff --git a/src/s_user.c b/src/s_user.c index 31e05c1..161cacc 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -304,11 +304,6 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char sendto_one_notice(source_p, ":*** Notice -- You have an illegal character in your hostname"); strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host)); - -#ifdef IPV6 - if(ConfigFileEntry.dot_in_ip6_addr == 1) - strlcat(source_p->host, ".", sizeof(source_p->host)); -#endif }