mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix bug in admin socket where requests fail unless "arguments":{} is specified in the JSON
				
					
				
			This commit is contained in:
		
							parent
							
								
									98b0aaf747
								
							
						
					
					
						commit
						cfa293d189
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -327,6 +327,7 @@ func (a *AdminSocket) handleRequest(conn net.Conn) {
 | 
			
		|||
		var buf json.RawMessage
 | 
			
		||||
		var req AdminSocketRequest
 | 
			
		||||
		var resp AdminSocketResponse
 | 
			
		||||
		req.Arguments = []byte("{}")
 | 
			
		||||
		if err := func() error {
 | 
			
		||||
			if err = decoder.Decode(&buf); err != nil {
 | 
			
		||||
				return fmt.Errorf("Failed to find request")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue