You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. From c29b4b0e3cc5bf68129fd0f94f424950b7888deb Mon Sep 17 00:00:00 2001
  2. Message-Id: <c29b4b0e3cc5bf68129fd0f94f424950b7888deb.1567630068.git.mschiffer@universe-factory.net>
  3. From: Wilfried Klaebe <wklaebe@users.noreply.github.com>
  4. Date: Sat, 31 Aug 2019 21:44:13 +0200
  5. Subject: [PATCH] doc: examples/openwrt: fix init script, wasn't working with
  6. two VPNs
  7. If two VPNs were configured via uci, the init script complained about
  8. the peer group of its peers not matching its net.
  9. ---
  10. doc/examples/openwrt/fastd.init | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/doc/examples/openwrt/fastd.init b/doc/examples/openwrt/fastd.init
  13. index 15737b403ec2..4ba69ece9887 100644
  14. --- a/doc/examples/openwrt/fastd.init
  15. +++ b/doc/examples/openwrt/fastd.init
  16. @@ -233,7 +233,7 @@ generate_peer_group_config() {
  17. config_get group_parent "$group" parent
  18. [ "$parent" = "$group_parent" ] || return 0
  19. - if [ "$net" != "$peer_net" ]; then
  20. + if [ "$net" != "$group_net" ]; then
  21. [ -z "$parent" ] || error "warning: the parent of peer group '$group' doesn't match its net, the peer group will be ignored"
  22. return 0
  23. fi
  24. --
  25. 2.23.0