check piece message headers before truncating piece index
support implied_port in DHT announce_peer