nictuku/dht

Pass port argument to PeersRequest method

Closed this issue · 0 comments

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)