Fix copy paste error

The PostDown section wasn't set anymore in certain cases.
This commit is contained in:
agraphie 2022-09-18 16:19:57 +02:00
parent f8997a08b6
commit 56a96e8bc2
No known key found for this signature in database
GPG key ID: D5F7D8CA94239BE9

View file

@ -359,7 +359,7 @@ func WriteWgConfig(node *models.Node, privateKey string, peers []wgtypes.PeerCon
wireguard.Section(section_interface).Key("PostDown").AddShadow(part)
}
} else {
wireguard.Section(section_interface).Key("PostUp").SetValue((node.PostUp))
wireguard.Section(section_interface).Key("PostDown").SetValue((node.PostDown))
}
}
if node.MTU != 0 {