Convert char array to string

This commit is contained in:
srdante 2022-03-26 18:31:32 -03:00
parent 85ab2c82aa
commit 8f8b3e0a34

View file

@ -94,7 +94,10 @@ static int websocket_callback(struct lws *wsi, enum lws_callback_reasons reason,
dbg_msg("websockets", "connection established with %s", addr_str);
pss->addr_str = addr_str;
std::string addr_str_final;
addr_str_final.append(addr_str);
pss->addr_str = addr_str_final;
ctx_data->port_map[pss->addr_str] = pss;
}
break;