automatically append listening port to endpoint address (#352)

This commit is contained in:
Christoph Haas
2025-01-26 09:52:09 +01:00
parent d35889de73
commit 1b8cdc3417
4 changed files with 25 additions and 4 deletions

View File

@@ -456,6 +456,10 @@ func (m Manager) saveInterface(ctx context.Context, iface *domain.Interface) (
*domain.Interface,
error,
) {
if err := iface.Validate(); err != nil {
return nil, fmt.Errorf("interface validation failed: %w", err)
}
stateChanged := m.hasInterfaceStateChanged(ctx, iface)
if err := m.handleInterfacePreSaveHooks(stateChanged, iface); err != nil {