mirror of
https://github.com/onyx-and-iris/q3rcon-proxy.git
synced 2025-04-20 04:23:48 +01:00
Compare commits
3 Commits
f6f0044a84
...
107f914d3b
Author | SHA1 | Date | |
---|---|---|---|
107f914d3b | |||
0fdf9d10c3 | |||
690fabddaf |
35
CHANGELOG.md
35
CHANGELOG.md
@ -11,8 +11,41 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
|
||||
|
||||
- [x]
|
||||
|
||||
## [0.6.0] - 2024-03-21
|
||||
|
||||
### Added
|
||||
|
||||
- new environment variable `Q3RCON_DEBUG` for enabling debug logging. Defaults to 0.
|
||||
- rcon responses are now logged at debug level
|
||||
- invalid responses (rcon and query) now logged
|
||||
|
||||
### Changed
|
||||
|
||||
- All packet header checking methods moved into Session struct.
|
||||
|
||||
### Fixed
|
||||
|
||||
- a bug causing the proxy not to send back query responses
|
||||
|
||||
## [0.3.0] - 2024-03-08
|
||||
|
||||
### Added
|
||||
|
||||
- outgoing rcon requests now logged at info level
|
||||
- new environment variable `Q3RCON_HOST` for specifying which ip to bind the proxy to. Defaults to `0.0.0.0`.
|
||||
|
||||
### Changed
|
||||
|
||||
- now using [logrus][logrus] package for logging.
|
||||
|
||||
### Fixed
|
||||
|
||||
- a `slice bounds out of range` error due to query packets being logged.
|
||||
|
||||
## [0.1.0] - 2024-01-27
|
||||
|
||||
### Added
|
||||
|
||||
- only forward packets if the header matches q3 rcon/query.
|
||||
|
||||
## [0.0.1] - 2024-01-27
|
||||
@ -20,3 +53,5 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
|
||||
### Added
|
||||
|
||||
- All source files for lilproxy including full commit history.
|
||||
|
||||
[logrus]: https://github.com/sirupsen/logrus
|
||||
|
@ -22,7 +22,7 @@ Avoid sending plaintext rcon commands to the public game server port. In general
|
||||
|
||||
### Special Thanks
|
||||
|
||||
[Dylan][user_link] For writing this proxy.
|
||||
[Dylan][user_link] For writing [lilproxy][lilproxy_url].
|
||||
|
||||
[lilproxy_url]: https://github.com/dgparker/lilproxy
|
||||
[user_link]: https://github.com/dgparker
|
||||
|
@ -85,9 +85,8 @@ func (s *Session) proxyFrom(buf []byte) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if s.isRconResponsePacket(buf) && log.GetLevel() == log.DebugLevel {
|
||||
parts := strings.Split(string(buf[10:]), " ")
|
||||
log.Debugf("Response: %s", strings.Join(parts, " "))
|
||||
if s.isRconResponsePacket(buf) {
|
||||
log.Debugf("Response: %s", string(buf[10:]))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user