Skip to content

Commit

Permalink
protocol: fix illegal ws path error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 21, 2021
1 parent 8a745a0 commit 7ce3081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7ce3081

Please sign in to comment.