fix dht count when using proxy (fix #231)