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:
parent
12f4814c41
commit
82cc7f56e3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue