oc_discovery:set interface idx in client handler
@@ -576,6 +576,7 @@ oc_ri_process_discovery_payload(uint8_t *payload, int len,
if (eps_cur) {
memcpy(eps_cur, &temp_ep, sizeof(oc_endpoint_t));
+ eps_cur->interface_index = endpoint->interface_index;
if (oc_ipv6_endpoint_is_link_local(eps_cur) == 0 &&
oc_ipv6_endpoint_is_link_local(endpoint) == 0) {
eps_cur->addr.ipv6.scope = endpoint->addr.ipv6.scope;
