mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-15 12:45:09 +02:00
Fix init script, wasn't working with two VPNs.
If two VPNs were configured via uci, the init script complained about the peer group of its peers not matching its net.
This commit is contained in:
parent
93c0c4e555
commit
68336102ee
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ generate_peer_group_config() {
|
||||||
config_get group_parent "$group" parent
|
config_get group_parent "$group" parent
|
||||||
[ "$parent" = "$group_parent" ] || return 0
|
[ "$parent" = "$group_parent" ] || return 0
|
||||||
|
|
||||||
if [ "$net" != "$peer_net" ]; then
|
if [ "$net" != "$group_net" ]; then
|
||||||
[ -z "$parent" ] || error "warning: the parent of peer group '$group' doesn't match its net, the peer group will be ignored"
|
[ -z "$parent" ] || error "warning: the parent of peer group '$group' doesn't match its net, the peer group will be ignored"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue