Fix bug in which client would attempt to connect to localhost socket instead of to the server.
Fix bug in which client would attempt to connect to localhost socket instead of to the server.

chufanl/templogger,chufanl/templogger,chufanl/templogger