miguelfreitas / twister-core

twister core / daemon
MIT License
1.42k stars 251 forks source link

DHT subsystem should respect bind address and family #254

Open kseistrup opened 10 years ago

kseistrup commented 10 years ago

It is possibly to have twisterd listening in a given address and family by using bind= and possibly onlynet= in twister.conf, e.g.:

# Bind to given address and always listen on it.
# Use [host] notation for IPv6
bind=[fc7d:9d41:4911:36b4:bb37:f7f2:ace5:d745]
# Only connect to nodes in network (IPv4|IPv6|Tor)
onlynet=IPv6

This goes well for port 28333. However, no matter what values I use in twister.conf twisterd will always listen on 0.0.0.0:29333 – i.e., IPv4.

iShift commented 10 years ago

+1 and need option for force TCP Relay (like for tor)

miguelfreitas commented 10 years ago

@kseistrup good point. we should use this "bind=" parameter from Bitcoin to initialize libtorrent's parameters. Most likely this should go into "listen_interface" string described in http://libtorrent.org/manual.html i'm not sure i'll be able to do this in near time though since i'm leaving on vacations next week...

kseistrup commented 10 years ago

@miguelfreitas if you – or somebody else – implements this, please remember that there can be multiple bind= instances in the config file.

kseistrup commented 9 years ago

Bump