mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-04-20 12:33:48 +01:00
Compare commits
No commits in common. "5ac3f805e238c5421d4e4dbe8687a7c61eb51ee8" and "107f914d3b2eafb16ada11899ad0b024fd6029ce" have entirely different histories.
5ac3f805e2
...
107f914d3b
18
debian/q3rcon-proxy.service
vendored
18
debian/q3rcon-proxy.service
vendored
@ -1,18 +0,0 @@
|
|||||||
[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) {
|
if s.isRconRequestPacket(buf) {
|
||||||
parts := strings.Split(string(buf), " ")
|
parts := strings.Split(string(buf), " ")
|
||||||
log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP, s.serverConn.RemoteAddr(), strings.Join(parts[2:], " "))
|
log.Infof("From [%s] To [%s] Command: %s", s.caddr.IP.String(), s.serverConn.RemoteAddr().String(), strings.Join(parts[2:], " "))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user