test
This commit is contained in:
		
							parent
							
								
									c7130dffe6
								
							
						
					
					
						commit
						a19781d8ab
					
				
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@ -190,7 +190,7 @@ func main() {
 | 
				
			|||||||
			sp.Read(b[:p.PLength])
 | 
								sp.Read(b[:p.PLength])
 | 
				
			||||||
			logInfoDebug("AdminPacketServerRCon :\n-  ColorID: %d\n-  Output: %s", sp.ColorID, sp.Output)
 | 
								logInfoDebug("AdminPacketServerRCon :\n-  ColorID: %d\n-  Output: %s", sp.ColorID, sp.Output)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			ok, err := regexp.MatchString("Client #[0-9]+  name: '.*'  company: [0-9]+  IP: .*", sp.Output)
 | 
								ok, _ := regexp.MatchString("Client #[0-9]+  name: '.*'  company: [0-9]+  IP: .*", sp.Output)
 | 
				
			||||||
			if ok {
 | 
								if ok {
 | 
				
			||||||
				clt := Client{}
 | 
									clt := Client{}
 | 
				
			||||||
				r, _ := regexp.Compile("Client #(?P<ClientID>[0-9]+)  name: '(?P<Name>.*)'  company: (?P<CompanyID>[0-9]+)  IP: (?P<Address>.*)")
 | 
									r, _ := regexp.Compile("Client #(?P<ClientID>[0-9]+)  name: '(?P<Name>.*)'  company: (?P<CompanyID>[0-9]+)  IP: (?P<Address>.*)")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user