mirror of
				https://github.com/dndx/phantun.git
				synced 2025-11-01 02:15:51 +08:00 
			
		
		
		
	fix(phantun) do not use the deprecated fec0::/10 block for default ULA
				
					
				
			address
This commit is contained in:
		| @@ -83,7 +83,7 @@ async fn main() -> io::Result<()> { | |||||||
|                 .required(false) |                 .required(false) | ||||||
|                 .value_name("IP") |                 .value_name("IP") | ||||||
|                 .help("Sets the Tun interface IPv6 local address (O/S's end)") |                 .help("Sets the Tun interface IPv6 local address (O/S's end)") | ||||||
|                 .default_value("fec8::1") |                 .default_value("fcc8::1") | ||||||
|                 .takes_value(true), |                 .takes_value(true), | ||||||
|         ) |         ) | ||||||
|         .arg( |         .arg( | ||||||
| @@ -94,7 +94,7 @@ async fn main() -> io::Result<()> { | |||||||
|                 .help("Sets the Tun interface IPv6 destination (peer) address (Phantun Client's end). \ |                 .help("Sets the Tun interface IPv6 destination (peer) address (Phantun Client's end). \ | ||||||
|                        You will need to setup SNAT/MASQUERADE rules on your Internet facing interface \ |                        You will need to setup SNAT/MASQUERADE rules on your Internet facing interface \ | ||||||
|                        in order for Phantun Client to connect to Phantun Server") |                        in order for Phantun Client to connect to Phantun Server") | ||||||
|                 .default_value("fec8::2") |                 .default_value("fcc8::2") | ||||||
|                 .takes_value(true), |                 .takes_value(true), | ||||||
|         ) |         ) | ||||||
|         .get_matches(); |         .get_matches(); | ||||||
|   | |||||||
| @@ -83,7 +83,7 @@ async fn main() -> io::Result<()> { | |||||||
|                 .required(false) |                 .required(false) | ||||||
|                 .value_name("IP") |                 .value_name("IP") | ||||||
|                 .help("Sets the Tun interface IPv6 local address (O/S's end)") |                 .help("Sets the Tun interface IPv6 local address (O/S's end)") | ||||||
|                 .default_value("fec9::1") |                 .default_value("fcc9::1") | ||||||
|                 .takes_value(true), |                 .takes_value(true), | ||||||
|         ) |         ) | ||||||
|         .arg( |         .arg( | ||||||
| @@ -94,7 +94,7 @@ async fn main() -> io::Result<()> { | |||||||
|                 .help("Sets the Tun interface IPv6 destination (peer) address (Phantun Client's end). \ |                 .help("Sets the Tun interface IPv6 destination (peer) address (Phantun Client's end). \ | ||||||
|                        You will need to setup SNAT/MASQUERADE rules on your Internet facing interface \ |                        You will need to setup SNAT/MASQUERADE rules on your Internet facing interface \ | ||||||
|                        in order for Phantun Client to connect to Phantun Server") |                        in order for Phantun Client to connect to Phantun Server") | ||||||
|                 .default_value("fec9::2") |                 .default_value("fcc9::2") | ||||||
|                 .takes_value(true), |                 .takes_value(true), | ||||||
|         ) |         ) | ||||||
|         .get_matches(); |         .get_matches(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user