mirror of
				https://github.com/onyx-and-iris/q3rcon-proxy.git
				synced 2025-11-03 22:31:48 +00:00 
			
		
		
		
	log rcon commands level INFO
This commit is contained in:
		
							parent
							
								
									88c90f1447
								
							
						
					
					
						commit
						6f49cc5b63
					
				@ -1,9 +1,11 @@
 | 
			
		||||
package udpproxy
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"log"
 | 
			
		||||
	"net"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	log "github.com/sirupsen/logrus"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Session struct {
 | 
			
		||||
@ -62,6 +64,8 @@ func (s *Session) proxyTo(buf []byte) error {
 | 
			
		||||
		log.Println(err)
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	parts := strings.Split(string(buf), " ")
 | 
			
		||||
	log.Info("From [", s.caddr, "] Command: ", strings.Join(parts[2:], " "))
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user