diff --git a/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/310-gluon-client-bridge-local-node b/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/310-gluon-client-bridge-local-node index 4b51db0c..824d8d40 100755 --- a/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/310-gluon-client-bridge-local-node +++ b/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/310-gluon-client-bridge-local-node @@ -23,7 +23,8 @@ uci:section('network', 'device', 'local_node_dev', { local ip4, ip6 if next_node.ip4 then - ip4 = next_node.ip4 .. '/32' + local plen = site.prefix4():match('/%d+$') + ip4 = next_node.ip4 .. plen end if next_node.ip6 then diff --git a/package/gluon-mesh-batman-adv/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-client-bridge b/package/gluon-mesh-batman-adv/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-client-bridge index a03ea658..85c21ac4 100755 --- a/package/gluon-mesh-batman-adv/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-client-bridge +++ b/package/gluon-mesh-batman-adv/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-client-bridge @@ -25,10 +25,6 @@ uci:section('network', 'interface', 'client', { uci:delete('network', 'client_lan') uci:delete('network', 'local_node_route') -uci:section('network', 'route', 'local_node_route', { - interface = 'client', - target = site.prefix4(), -}) uci:delete('network', 'local_node_route6') uci:section('network', 'route6', 'local_node_route6', {