diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2026-03-20 17:50:54 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2026-03-20 17:50:54 -0300 |
| commit | 27ae2780288cacf6de913e049de0138c0a4266ec (patch) | |
| tree | 2587765b88fadb5d5e83806a53f588fff29d62b1 /README.md | |
| parent | 66a3212bc112ace10c008fddee9d27a99b1e95d8 (diff) | |
| download | login-27ae2780288cacf6de913e049de0138c0a4266ec.tar.gz login-27ae2780288cacf6de913e049de0138c0a4266ec.zip | |
support for proxy headers
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -9,5 +9,14 @@ make -B DEBUG=1 # rebuild in debug mode make clean # remove `build` directory ``` +### Extra Features (Advanced) +There are also some extra features that can be enabled by appending the following definitions to the `CFLAGS` variable in your `Makefile`. They're completely optional but can be useful in specific scenarios. + +- `-DTIBIA772=1` + - Check for client version 7.72 rather than 7.7. The login protocols for both versions are the same, but because the game protocols are not, there is no reason to allow both to go through. + +- `-DALLOW_LOCAL_PROXY=1` + - Allow **local** connections to send a proxy header. Ideally we'd have a list of trusted proxies to prevent clients from spoofing their addresses. In reality, it is almost always simpler to have a **local** relay. This is also the only way to get a multi-route proxy without having to drastically change the way connections are handled. + ## Running Similar to the game server, the login server won't boot up if it's not able to connect to the [Query Manager](https://github.com/fusion32/tibia-querymanager). That said, running it is straighforward, requiring only the RSA private key `tibia.pem` and `config.cfg` files to be in the working directory. For testing purposes you could simply compile and launch the application from the shell, but if you plan to run the game server on a dedicated machine, it is recommended that it is setup as a service. There is a *systemd* configuration file (`tibia-login.service`) in the repository that may be used for that purpose. The process is very similar to the one described in the [Game Server](https://github.com/fusion32/tibia-game) so I won't repeat myself here. |
