mirror of
				https://github.com/onyx-and-iris/q3rcon-proxy.git
				synced 2025-11-04 06:41:48 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			107f914d3b
			...
			5ac3f805e2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5ac3f805e2 | |||
| ab548d669a | 
							
								
								
									
										18
									
								
								debian/q3rcon-proxy.service
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								debian/q3rcon-proxy.service
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Q3Rcon Proxy Service
 | 
			
		||||
Wants=network.target
 | 
			
		||||
After=network.target
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=simple
 | 
			
		||||
User=gameservers
 | 
			
		||||
Environment="Q3RCON_PROXY=20000:28960;20001:28961;20002:28962"
 | 
			
		||||
Environment="Q3RCON_HOST=0.0.0.0"
 | 
			
		||||
Environment="Q3RCON_DEBUG=0"
 | 
			
		||||
 | 
			
		||||
ExecStart=/usr/local/bin/q3rcon-proxy
 | 
			
		||||
Restart=always
 | 
			
		||||
RestartSec=3
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=multi-user.target
 | 
			
		||||
@ -108,7 +108,7 @@ func (s *Session) proxyTo(buf []byte) error {
 | 
			
		||||
 | 
			
		||||
	if s.isRconRequestPacket(buf) {
 | 
			
		||||
		parts := strings.Split(string(buf), " ")
 | 
			
		||||
		log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP.String(), s.serverConn.RemoteAddr().String(), strings.Join(parts[2:], " "))
 | 
			
		||||
		log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP, s.serverConn.RemoteAddr(), strings.Join(parts[2:], " "))
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user