mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 12:26:21 +02:00
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>
13 lines
401 B
Go
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()
|
|
}
|