talos/pkg/provision/providers/vm/loadbalancer_linux.go
Orzelius ab7e693d76
chore: make qemu lb address bind work on darwin
The loadbalancer is bound to all interfaces on macos.
The bridge interface address is not used as the bridge is not yet created at this stage.
Multiple loadbalancers can be assigned via different ports.

Signed-off-by: Orzelius <33936483+Orzelius@users.noreply.github.com>
2025-05-07 21:42:48 +09:00

13 lines
401 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package vm
import "net/netip"
// getLbBindIP returns the gateway address to bind the loadbalancer to the bridge interface.
func getLbBindIP(gateway netip.Addr) string {
return gateway.String()
}