diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dns.h | 3 | ||||
-rw-r--r-- | include/inspsocket.h | 2 | ||||
-rw-r--r-- | include/modules.h | 14 |
3 files changed, 4 insertions, 15 deletions
diff --git a/include/dns.h b/include/dns.h index 3682bbe1d..a780505d0 100644 --- a/include/dns.h +++ b/include/dns.h @@ -358,12 +358,11 @@ class CoreExport DNS : public EventHandler */ int socketfamily; -#ifdef IPV6 /** * IPV6 server address */ in6_addr myserver6; -#endif + /** * IPV4 server address */ diff --git a/include/inspsocket.h b/include/inspsocket.h index 66ea48eb3..32f2dab1a 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -173,7 +173,7 @@ class CoreExport BufferedSocket : public EventHandler /** (really) Try bind to a given IP setup. For internal use only. */ - bool DoBindMagic(const std::string ¤t_ip, bool v6); + bool DoBindMagic(const std::string ¤t_ip); /** * The default constructor does nothing diff --git a/include/modules.h b/include/modules.h index 932ef3d19..f6678e931 100644 --- a/include/modules.h +++ b/include/modules.h @@ -76,18 +76,8 @@ enum MessageType { MSG_NOTICE = 1 }; -/** If you change the module API, change this value. - * If you have enabled ipv6, the sizes of structs is - * different, and modules will be incompatible with - * ipv4 servers, so this value will be ten times as - * high on ipv6 servers. - */ -#define NATIVE_API_VERSION 12000 -#ifdef IPV6 -#define API_VERSION (NATIVE_API_VERSION * 10) -#else -#define API_VERSION (NATIVE_API_VERSION * 1) -#endif +/** If you change the module API, change this value. */ +#define API_VERSION 13000 class ServerConfig; |