mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	initial meshnet mode
This commit is contained in:
		
							parent
							
								
									0c46993baa
								
							
						
					
					
						commit
						4cf4436169
					
				
					 4 changed files with 29 additions and 8 deletions
				
			
		| 
						 | 
					@ -138,6 +138,11 @@ namespace i2p
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			bool ipv6;		i2p::config::GetOption("ipv6", ipv6);
 | 
								bool ipv6;		i2p::config::GetOption("ipv6", ipv6);
 | 
				
			||||||
			bool ipv4;		i2p::config::GetOption("ipv4", ipv4);
 | 
								bool ipv4;		i2p::config::GetOption("ipv4", ipv4);
 | 
				
			||||||
 | 
					#ifdef MESHNET
 | 
				
			||||||
 | 
					      // manual override for meshnet
 | 
				
			||||||
 | 
					      ipv4 = false;
 | 
				
			||||||
 | 
					      ipv6 = true;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
			bool transit; i2p::config::GetOption("notransit", transit);
 | 
								bool transit; i2p::config::GetOption("notransit", transit);
 | 
				
			||||||
			i2p::context.SetSupportsV6		 (ipv6);
 | 
								i2p::context.SetSupportsV6		 (ipv6);
 | 
				
			||||||
			i2p::context.SetSupportsV4		 (ipv4);
 | 
								i2p::context.SetSupportsV4		 (ipv4);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -11,6 +11,7 @@ include filelist.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
USE_AESNI  := yes
 | 
					USE_AESNI  := yes
 | 
				
			||||||
USE_STATIC := no
 | 
					USE_STATIC := no
 | 
				
			||||||
 | 
					USE_MESHNET := yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifeq ($(UNAME),Darwin)
 | 
					ifeq ($(UNAME),Darwin)
 | 
				
			||||||
	DAEMON_SRC += DaemonLinux.cpp
 | 
						DAEMON_SRC += DaemonLinux.cpp
 | 
				
			||||||
| 
						 | 
					@ -30,6 +31,10 @@ else # win32 mingw
 | 
				
			||||||
	include Makefile.mingw
 | 
						include Makefile.mingw
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifeq ($(USE_MESHNET),yes)
 | 
				
			||||||
 | 
						CXXFLAGS += -DMESHNET
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all: mk_obj_dir $(ARLIB) $(ARLIB_CLIENT) $(I2PD)
 | 
					all: mk_obj_dir $(ARLIB) $(ARLIB_CLIENT) $(I2PD)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
mk_obj_dir:
 | 
					mk_obj_dir:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,11 @@ namespace data
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	static std::vector<std::string> httpsReseedHostList =
 | 
						static std::vector<std::string> httpsReseedHostList =
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
 | 
					#ifdef MESHNET
 | 
				
			||||||
 | 
							// meshnet i2p reseeds
 | 
				
			||||||
 | 
							"https://reseed.i2p.rocks:8443/"
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
							// mainline i2p reseeds
 | 
				
			||||||
		"https://reseed.i2p-projekt.de/", // Only HTTPS
 | 
							"https://reseed.i2p-projekt.de/", // Only HTTPS
 | 
				
			||||||
				"https://i2p.mooo.com/netDb/",
 | 
									"https://i2p.mooo.com/netDb/",
 | 
				
			||||||
				"https://netdb.i2p2.no/", // Only SU3 (v3) support, SNI required
 | 
									"https://netdb.i2p2.no/", // Only SU3 (v3) support, SNI required
 | 
				
			||||||
| 
						 | 
					@ -32,6 +37,7 @@ namespace data
 | 
				
			||||||
				"https://reseed.i2p.vzaws.com:8443/", // Only SU3 (v3) support
 | 
									"https://reseed.i2p.vzaws.com:8443/", // Only SU3 (v3) support
 | 
				
			||||||
				"https://user.mx24.eu/", // Only HTTPS and SU3 (v3) support
 | 
									"https://user.mx24.eu/", // Only HTTPS and SU3 (v3) support
 | 
				
			||||||
				"https://download.xxlspeed.com/" // Only HTTPS and SU3 (v3) support
 | 
									"https://download.xxlspeed.com/" // Only HTTPS and SU3 (v3) support
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
	Reseeder::Reseeder()
 | 
						Reseeder::Reseeder()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,12 @@
 | 
				
			||||||
#define I2PD_VERSION_PATCH 0
 | 
					#define I2PD_VERSION_PATCH 0
 | 
				
			||||||
#define I2PD_VERSION MAKE_VERSION(I2PD_VERSION_MAJOR, I2PD_VERSION_MINOR, I2PD_VERSION_MICRO)
 | 
					#define I2PD_VERSION MAKE_VERSION(I2PD_VERSION_MAJOR, I2PD_VERSION_MINOR, I2PD_VERSION_MICRO)
 | 
				
			||||||
#define VERSION I2PD_VERSION
 | 
					#define VERSION I2PD_VERSION
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef MESHNET
 | 
				
			||||||
 | 
					#define I2PD_NET_ID 3
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
#define I2PD_NET_ID 2
 | 
					#define I2PD_NET_ID 2
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define I2P_VERSION_MAJOR 0
 | 
					#define I2P_VERSION_MAJOR 0
 | 
				
			||||||
#define I2P_VERSION_MINOR 9
 | 
					#define I2P_VERSION_MINOR 9
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue