mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-01 01:35:06 +03:00 
			
		
		
		
	have the core wrap and export the underlying PacketConn, move IPv6 ReadWriteCloser wrapper logic to a separate package
This commit is contained in:
		
							parent
							
								
									35e8ff7c9d
								
							
						
					
					
						commit
						f990a56046
					
				
					 11 changed files with 170 additions and 110 deletions
				
			
		|  | @ -129,7 +129,7 @@ func (m *nodeinfo) _sendReq(key keyArray, callback func(nodeinfo NodeInfoPayload | |||
| 	if callback != nil { | ||||
| 		m._addCallback(key, callback) | ||||
| 	} | ||||
| 	_, _ = m.proto.core.pc.WriteTo([]byte{typeSessionProto, typeProtoNodeInfoRequest}, iwt.Addr(key[:])) | ||||
| 	_, _ = m.proto.core.WriteTo([]byte{typeSessionProto, typeProtoNodeInfoRequest}, iwt.Addr(key[:])) | ||||
| } | ||||
| 
 | ||||
| func (m *nodeinfo) handleReq(from phony.Actor, key keyArray) { | ||||
|  | @ -146,7 +146,7 @@ func (m *nodeinfo) handleRes(from phony.Actor, key keyArray, info NodeInfoPayloa | |||
| 
 | ||||
| func (m *nodeinfo) _sendRes(key keyArray) { | ||||
| 	bs := append([]byte{typeSessionProto, typeProtoNodeInfoResponse}, m._getNodeInfo()...) | ||||
| 	_, _ = m.proto.core.pc.WriteTo(bs, iwt.Addr(key[:])) | ||||
| 	_, _ = m.proto.core.WriteTo(bs, iwt.Addr(key[:])) | ||||
| } | ||||
| 
 | ||||
| // Admin socket stuff | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Arceliar
						Arceliar