mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Make yggdrasilctl less case-sensitive
This commit is contained in:
		
							parent
							
								
									5cff8428c3
								
							
						
					
					
						commit
						cff7ef026f
					
				
					 2 changed files with 9 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -309,7 +309,7 @@ func (a *admin) handleRequest(conn net.Conn) {
 | 
			
		|||
	handlers:
 | 
			
		||||
		for _, handler := range a.handlers {
 | 
			
		||||
			// We've found the handler that matches the request
 | 
			
		||||
			if recv["request"] == handler.name {
 | 
			
		||||
			if strings.ToLower(recv["request"].(string)) == strings.ToLower(handler.name) {
 | 
			
		||||
				// Check that we have all the required arguments
 | 
			
		||||
				for _, arg := range handler.args {
 | 
			
		||||
					// An argument in [square brackets] is optional and not required,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue