fix(settings): print outbound subnets correctly

This commit is contained in:
Quentin McGaw
2022-12-31 17:46:55 +00:00
parent 4e6ef649c4
commit ea40b84ec0

View File

@@ -109,7 +109,8 @@ func (f Firewall) toLinesNode() (node *gotree.Node) {
if len(f.OutboundSubnets) > 0 {
outboundSubnets := node.Appendf("Outbound subnets:")
for _, subnet := range f.OutboundSubnets {
outboundSubnets.Appendf("%s", subnet)
subnet := subnet
outboundSubnets.Appendf("%s", &subnet)
}
}