Bugfix: does not register to the consul service when multiple port published.