mirror of
				https://github.com/onyx-and-iris/q3rcon-proxy.git
				synced 2025-11-03 22:31:48 +00:00 
			
		
		
		
	easier to read?
This commit is contained in:
		
							parent
							
								
									3a8758a4d7
								
							
						
					
					
						commit
						e8f213fded
					
				@ -13,7 +13,7 @@ type validator struct {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func newValidator() validator {
 | 
					func newValidator() validator {
 | 
				
			||||||
	return validator{
 | 
						v := validator{
 | 
				
			||||||
		rconRequestHeader:       []byte("\xff\xff\xff\xffrcon"),
 | 
							rconRequestHeader:       []byte("\xff\xff\xff\xffrcon"),
 | 
				
			||||||
		getstatusRequestHeader:  []byte("\xff\xff\xff\xffgetstatus"),
 | 
							getstatusRequestHeader:  []byte("\xff\xff\xff\xffgetstatus"),
 | 
				
			||||||
		getinfoRequestHeader:    []byte("\xff\xff\xff\xffgetinfo"),
 | 
							getinfoRequestHeader:    []byte("\xff\xff\xff\xffgetinfo"),
 | 
				
			||||||
@ -22,6 +22,7 @@ func newValidator() validator {
 | 
				
			|||||||
		getinfoResponseHeader:   []byte("\xff\xff\xff\xffinfoResponse\n"),
 | 
							getinfoResponseHeader:   []byte("\xff\xff\xff\xffinfoResponse\n"),
 | 
				
			||||||
		badRconIdentifier:       []byte("Bad rcon"),
 | 
							badRconIdentifier:       []byte("Bad rcon"),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						return v
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (v *validator) isRconRequestPacket(buf []byte) bool {
 | 
					func (v *validator) isRconRequestPacket(buf []byte) bool {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user