From: Shuanglei Tao Date: Thu, 21 Jan 2021 12:51:06 +0000 (+0800) Subject: protocol: fix illegal ws path error msg X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=7ce3081b74724787245eaa4edc34727c4d239908;p=ttyd.git protocol: fix illegal ws path error msg --- diff --git a/src/protocol.c b/src/protocol.c index 4b832ab..a02d3ba 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -245,7 +245,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user, if (n <= 0) n = lws_hdr_copy(wsi, pss->path, sizeof(pss->path), WSI_TOKEN_HTTP_COLON_PATH); #endif if (strncmp(pss->path, endpoints.ws, n) != 0) { - lwsl_warn("refuse to serve WS client for illegal ws path: %s\n", buf); + lwsl_warn("refuse to serve WS client for illegal ws path: %s\n", pss->path); return 1; }