improve error logging

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
development
kim (grufwub) 3 years ago
parent 3e182207e0
commit d6bf0f44a6

@ -62,7 +62,7 @@ func serve(client *core.Client) {
// Check the host and port are our own (empty port is allowed)
if host != core.Hostname || (port != "" && port != core.Port) {
client.LogError(invalidRequestStr, raw)
handleError(client, errInvalidHostPort.Extend(host+" "+port))
handleError(client, errInvalidHostPort.Extend(host+":"+port))
return
}

Loading…
Cancel
Save