Skip to content

Commit

Permalink
Merge pull request #1283 from stgraber/main
Browse files Browse the repository at this point in the history
Various bugfixes
  • Loading branch information
hallyn authored Oct 3, 2024
2 parents f0f04d7 + b8aa460 commit adee036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/reference/devices_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The supported connection types are:

To add a `proxy` device, use the following command:

incus config device add <instance_name> <device_name> proxy listen=<type>:<addr>:<port>[-<port>][,<port>] connect=<type>:<addr>:<port> bind=<host/instance_name>
incus config device add <instance_name> <device_name> proxy listen=<type>:<addr>:<port>[-<port>][,<port>] connect=<type>:<addr>:<port> bind=<host/instance>

(devices-proxy-nat-mode)=
## NAT mode
Expand Down
7 changes: 7 additions & 0 deletions internal/server/network/driver_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,13 @@ func (n *bridge) setup(oldConfig map[string]string) error {
if err != nil {
return err
}

// Make sure the port is up.
link := &ip.Link{Name: entry}
err = link.SetUp()
if err != nil {
return fmt.Errorf("Failed to bring up the host interface %s: %w", entry, err)
}
}
}

Expand Down

0 comments on commit adee036

Please sign in to comment.