chihaya / chihaya

A customizable, multi-protocol BitTorrent Tracker
https://chihaya.io
Other
1.44k stars 190 forks source link

How to connect to redis with unix domain socket? #595

Open ghost opened 2 years ago

ghost commented 2 years ago

No docs about this

mrd0ll4r commented 2 years ago

Yeah, that's currently not implemented. The redisBackend supports this, but the redis storage implementation does not have configuration for a unix socket.

If you want to implement this, this is the relevant part in the code: https://github.com/chihaya/chihaya/blob/main/storage/redis/peer_store.go#L83-L193

We'd be happy to take a PR, and it shouldn't be too difficult :)

ghost commented 2 years ago

sure