mirror of
				https://github.com/taigrr/godns
				synced 2025-01-18 04:03:25 -08:00 
			
		
		
		
	add IPv6 support for HE.net
This commit is contained in:
		
							parent
							
								
									168ef4585a
								
							
						
					
					
						commit
						13f3d940a2
					
				| @ -116,6 +116,7 @@ Usage of ./godns: | |||||||
| 
 | 
 | ||||||
| Supported provider(s): | Supported provider(s): | ||||||
| * Cloudflare | * Cloudflare | ||||||
|  | * HE.net | ||||||
| 
 | 
 | ||||||
| To enable the `IPv6` mode of GoDNS, you only need two steps: | To enable the `IPv6` mode of GoDNS, you only need two steps: | ||||||
| * Set the `ip_type` as `IPv6`, and make sure the `ipv6_url` is configured. | * Set the `ip_type` as `IPv6`, and make sure the `ipv6_url` is configured. | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								utils.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								utils.go
									
									
									
									
									
								
							| @ -173,7 +173,7 @@ func GetIPOnline(configuration *Settings) (string, error) { | |||||||
| 	var response *http.Response | 	var response *http.Response | ||||||
| 	var err error | 	var err error | ||||||
| 
 | 
 | ||||||
| 	if configuration.IPType == "" || configuration.IPType == IPV4 { | 	if configuration.IPType == "" || strings.ToUpper(configuration.IPType) == IPV4 { | ||||||
| 		response, err = client.Get(configuration.IPUrl) | 		response, err = client.Get(configuration.IPUrl) | ||||||
| 	} else { | 	} else { | ||||||
| 		response, err = client.Get(configuration.IPV6Url) | 		response, err = client.Get(configuration.IPV6Url) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user