[FIX] server report_configuration database

Report unix socket instead of localhost when using named sockets.

Courtesy of Leonardo Pistone

Closes: #1899, #1900