Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Tutorials
Reply
  #1  
Old 10th September 2020, 05:12
fullcrumcake's Avatar
fullcrumcake fullcrumcake is offline
Member
 
Join Date: Jul 2014
Posts: 6
Default 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<char, 16>() || !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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 20:44. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.