mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +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>` ``` |
||
---|---|---|
.. | ||
etc | ||
scripts | ||
apisrv_test.go | ||
apisrv.go | ||
database_test.go | ||
database.go | ||
database.pb.go | ||
database.proto | ||
main.go | ||
README.md | ||
replication.go | ||
stats.go |
stdiscosrv
This is the global discovery server for the syncthing
project.