Bug/fix address socket

Solves https://github.com/bitpay/insight/issues/298