]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added a warning when 4in6 is used for binding
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Oct 2007 18:39:49 +0000 (18:39 +0000)
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 11 Oct 2007 18:39:49 +0000 (18:39 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8144 e03df62e-2008-0410-955e-edbf42e46eb7

src/socket.cpp

index 38178cab8bacc97940d72596cc3dae7d527176b4..2465506e919f8be1230cb380c20bc9b49964274a 100644 (file)
@@ -464,7 +464,10 @@ int InspIRCd::BindPorts(bool bail, int &ports_found, FailedPortList &failed_port
                Config->ConfValue(Config->config_data, "bind", "port", count, configToken, MAXBUF);
                Config->ConfValue(Config->config_data, "bind", "address", count, Addr, MAXBUF);
                Config->ConfValue(Config->config_data, "bind", "type", count, Type, MAXBUF);
-
+               
+               if (strncmp(Addr, "::ffff:", 7) == 0)
+                       this->Log(DEFAULT, "Using 4in6 (::ffff:) isn't recommended. You should bind IPv4 addresses directly instead.");
+               
                if ((!*Type) || (!strcmp(Type,"clients")))
                {
                        irc::portparser portrange(configToken, false);