Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Tutorials (http://www.bvlist.com/forumdisplay.php?f=61)
-   -   XBT now supports IPV6 (also code for Cloudflare https users) (http://www.bvlist.com/showthread.php?t=12293)

fullcrumcake 10th September 2020 05:12

XBT now supports IPV6 (also code for Cloudflare https users)
 
Since late June the official XBT code base on github now full supports IPv6. There's no official announcement or comments on it, but I've spoken with the creator Olaf and he confirmed it. And I added the updated code to my tracker and it works well. The code also seems to use less processing power.

Code:

https://github.com/OlafvdSpek/xbt

There's one thing i'll note that needs to be changed if you route traffic through Cloudflare and that's commenting out the following code in connection.cpp:

Code:

// if (ti.ipv6_ == std::array() || !is_private_ipa(addr_.sin6_addr.s6_addr))
                memcpy(ti.ipv6_.data(), addr_.sin6_addr.s6_addr, 16);
       

You should comment out this area so that peers can connect when you're routing traffic through Cloudflare:

memcpy(ti.ipv6_.data(), addr_.sin6_addr.s6_addr, 16);

That's about it and you will be able to track IPV4 and IPV6 traffic with XBT, test it out. Enjoy.


All times are GMT +2. The time now is 10:01.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.