Skip to content

Doesnt not bind to IPv6 addresses when http disabled (UDP Only) #73

@dtrackd

Description

@dtrackd

When running this:

bittorrent-tracker -p 80 --http false -q

Seems that the tracker only binds to the IPv4 addresses (0.0.0.0) which is fine but does not bind to IPv6 address ([::])

root@box:~# lsof -i :80
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
node    32129 root   10u  IPv4 1580383      0t0  UDP *:http

Here you can see on IPv4 its listening ok:

root@box:~#  nmap -sU -p 123.123.123.123

Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-02 07:33 MSK
Nmap scan report for 123.123.123.123
Host is up.
PORT   STATE         SERVICE
80/udp open|filtered http

Nmap done: 1 IP address (1 host up) scanned in 2.19 seconds

and for IPv6 udp port is closed:

root@box:~# nmap -6 -sU 2a00:dead::beef -p 80

Starting Nmap 6.00 ( http://nmap.org ) at 2015-05-02 07:33 MSK
Nmap scan report for 2a00:dead::beef
Host is up (0.000050s latency).
PORT   STATE  SERVICE
80/udp closed http

Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions