Skip to content

Commit

Permalink
gluon-mesh-vpn-fastd: respondd: adjust for new site.conf mesh VPN str…
Browse files Browse the repository at this point in the history
…ucture

Fixes freifunk-gluon#1130
  • Loading branch information
neocturne committed Jun 1, 2017
1 parent fbc1108 commit 9dae2eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package/gluon-mesh-vpn-fastd/src/respondd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9dae2eb

Please sign in to comment.