mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
test echo put proper origin
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
9f02c5dc24
commit
15ac07f1a0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue