nictuku / dht

Kademlia/Mainline DHT node in Go.
Other
826 stars 144 forks source link

Pass port argument to PeersRequest method #63

Closed cenkalti closed 6 years ago

cenkalti commented 6 years ago

I have a torrent client that serves each torrent on a seperate TCP port. I need to specify port in announce_peer query. Current PeersRequest method does not take any port argument and always use Config.Port. @nictuku can I add another method like:

func (d *DHT) PeersRequestPort(ih string, announce bool, port int)