Skip to content

Commit

Permalink
test echo put proper origin
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Green <[email protected]>
  • Loading branch information
Andy Green committed Apr 6, 2015
1 parent 9f02c5d commit 15ac07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-server/test-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,11 @@ int main(int argc, char **argv)
/* we are in client mode */

address[sizeof(address) - 1] = '\0';
sprintf(ads_port, "%s:%u\n", address, port & 65535);
sprintf(ads_port, "%s:%u", address, port & 65535);

wsi = libwebsocket_client_connect(context, address,
port, use_ssl, uri, ads_port,
"origin", NULL, -1);
ads_port, NULL, -1);
if (!wsi) {
lwsl_err("Client failed to connect to %s:%u\n", address, port);
goto bail;
Expand Down

0 comments on commit 15ac07f

Please sign in to comment.