Skip to content

Commit

Permalink
Merge pull request #12502 from tomponline/tp-proxy-routed-check
Browse files Browse the repository at this point in the history
lxd/device/proxy: Consider routed NIC IPs for wildcard target check
  • Loading branch information
tomponline authored Nov 4, 2023
2 parents e57a070 + c73cba5 commit 21d9fe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxd/device/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ func (d *proxy) setupNAT() error {
return err
}

if nicType != "bridged" {
// Check if the instance has a NIC with a static IP that is reachable from the host.
if !shared.ValueInSlice(nicType, []string{"bridged", "routed"}) {
continue
}

Expand Down

0 comments on commit 21d9fe4

Please sign in to comment.