diff options
author | proller <proller@github.com> | 2013-06-23 11:31:22 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2013-06-23 11:31:22 +0400 |
commit | f960c3be313c761fe02f9167dc1fe3fca5dc4ada (patch) | |
tree | 54543a7e61e6ed273840d9bcba6bc9655add5243 /src/client.cpp | |
parent | 309c5f3641dccaf1260953f098ccd593396dee64 (diff) | |
download | minetest-f960c3be313c761fe02f9167dc1fe3fca5dc4ada.tar.gz minetest-f960c3be313c761fe02f9167dc1fe3fca5dc4ada.tar.bz2 minetest-f960c3be313c761fe02f9167dc1fe3fca5dc4ada.zip |
Add support for IPv6
Two new configuration options are added:
- "enable_ipv6" to enable/disable the overall use of IPv6
- "ipv6_server" to enable/disable the use of IPv6 sockets when running
a server (when "enable_ipv6" is enabled)
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 5f53e14f7..c82d9b050 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -271,7 +271,8 @@ Client::Client( IWritableItemDefManager *itemdef, IWritableNodeDefManager *nodedef, ISoundManager *sound, - MtEventManager *event + MtEventManager *event, + bool ipv6 ): m_tsrc(tsrc), m_shsrc(shsrc), @@ -287,7 +288,7 @@ Client::Client( device->getSceneManager(), tsrc, this, device ), - m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, this), + m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this), m_device(device), m_server_ser_ver(SER_FMT_VER_INVALID), m_playeritem(0), |