hotfix(settings): allow public IP outbound subnets but not the unspecified address

This commit is contained in:
Quentin McGaw
2024-02-03 20:02:43 +00:00
parent 6b9c775055
commit b5f1055682
3 changed files with 3 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ func (f Firewall) validate() (err error) {
}
for _, subnet := range f.OutboundSubnets {
if !subnet.Addr().IsPrivate() {
if subnet.Addr().IsUnspecified() {
return fmt.Errorf("%w: %s", ErrFirewallPublicOutboundSubnet, subnet)
}
}