mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:42:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/miekg/dns from 1.1.50 to 1.1.51 (#1566)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.50 to 1.1.51. - [Release notes](https://github.com/miekg/dns/releases) - [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release) - [Commits](https://github.com/miekg/dns/compare/v1.1.50...v1.1.51) --- updated-dependencies: - dependency-name: github.com/miekg/dns dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								6c2bd141f7
							
						
					
				
			
			
				commit
				
					
						8696a8cdf0
					
				
			
		
					 58 changed files with 1019 additions and 168 deletions
				
			
		
							
								
								
									
										34
									
								
								vendor/github.com/miekg/dns/msg_helpers.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								vendor/github.com/miekg/dns/msg_helpers.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -810,3 +810,37 @@ func unpackDataAplPrefix(msg []byte, off int) (APLPrefix, int, error) { | |||
| 		Network:  ipnet, | ||||
| 	}, off, nil | ||||
| } | ||||
| 
 | ||||
| func unpackIPSECGateway(msg []byte, off int, gatewayType uint8) (net.IP, string, int, error) { | ||||
| 	var retAddr net.IP | ||||
| 	var retString string | ||||
| 	var err error | ||||
| 
 | ||||
| 	switch gatewayType { | ||||
| 	case IPSECGatewayNone: // do nothing | ||||
| 	case IPSECGatewayIPv4: | ||||
| 		retAddr, off, err = unpackDataA(msg, off) | ||||
| 	case IPSECGatewayIPv6: | ||||
| 		retAddr, off, err = unpackDataAAAA(msg, off) | ||||
| 	case IPSECGatewayHost: | ||||
| 		retString, off, err = UnpackDomainName(msg, off) | ||||
| 	} | ||||
| 
 | ||||
| 	return retAddr, retString, off, err | ||||
| } | ||||
| 
 | ||||
| func packIPSECGateway(gatewayAddr net.IP, gatewayString string, msg []byte, off int, gatewayType uint8, compression compressionMap, compress bool) (int, error) { | ||||
| 	var err error | ||||
| 
 | ||||
| 	switch gatewayType { | ||||
| 	case IPSECGatewayNone: // do nothing | ||||
| 	case IPSECGatewayIPv4: | ||||
| 		off, err = packDataA(gatewayAddr, msg, off) | ||||
| 	case IPSECGatewayIPv6: | ||||
| 		off, err = packDataAAAA(gatewayAddr, msg, off) | ||||
| 	case IPSECGatewayHost: | ||||
| 		off, err = packDomainName(gatewayString, msg, off, compression, compress) | ||||
| 	} | ||||
| 
 | ||||
| 	return off, err | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue