mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
854499382e
### Purpose Treat X-Forwarded-For as a comma-separated string to prevent nil IP being returned by the Discovery Server ### Testing Unit Tests implemented Testing with a Discovery Client can be done as follows: ``` A simple example to replicate this entails running Discovery with HTTP, use Nginx as a reverse proxy and hardcode (as an example) a list of IPs in the X-Forwarded-For header. 1. Send an Announcement with tcp://0.0.0.0:<some-port> 2. Query the DeviceID 3. Observe the returned IP Address is no longer nil; i.e. `tcp://<nil>:<some-port>` ``` |
||
---|---|---|
.. | ||
stcompdirs | ||
stcrashreceiver | ||
stdisco | ||
stdiscosrv | ||
stevents | ||
stfileinfo | ||
stfinddevice | ||
stfindignored | ||
stgenfiles | ||
strelaypoolsrv | ||
strelaysrv | ||
stsigtool | ||
stupgrades | ||
stvanity | ||
stwatchfile | ||
syncthing | ||
ursrv | ||
.gitignore |