diff --git a/package/gluon-mesh-vpn-fastd/src/respondd.c b/package/gluon-mesh-vpn-fastd/src/respondd.c index 7354783a305f4fac597c0347fe917e24bfa8ef2d..87d69e07e6b63903042eb506479c51787bb1bc78 100644 --- a/package/gluon-mesh-vpn-fastd/src/respondd.c +++ b/package/gluon-mesh-vpn-fastd/src/respondd.c @@ -276,11 +276,15 @@ static struct json_object * get_mesh_vpn(void) { if (!site) goto end; - struct json_object *fastd_mesh_vpn; - if (!json_object_object_get_ex(site, "fastd_mesh_vpn", &fastd_mesh_vpn)) + struct json_object *mesh_vpn; + if (!json_object_object_get_ex(site, "mesh_vpn", &mesh_vpn)) goto end; - ret = get_peer_group(fastd_mesh_vpn, peers); + struct json_object *mesh_vpn_fastd; + if (!json_object_object_get_ex(mesh_vpn, "fastd", &mesh_vpn_fastd)) + goto end; + + ret = get_peer_group(mesh_vpn_fastd, peers); end: json_object_put(site);