unetmsg: fix host name in response messages

Avoid using loop iterator variable when generating the closure

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-05-20 14:32:02 +02:00
parent 12f4814c41
commit 82cc7f56e3

View file

@ -131,7 +131,7 @@ function handle_request(handle, req, data, remote, host)
let cur_handle = cur;
let data_cb = (msg) => {
if (cur_handle.get_response_data)
msg = cur.get_response_data(msg);
msg = cur_handle.get_response_data(msg);
req.reply(msg, -1);
};