fix: logic error in port checking
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled

This commit is contained in:
2025-11-28 17:34:23 +07:00
parent 8442fedef1
commit 342f58ddb9
2 changed files with 1 additions and 4 deletions

View File

@ -74,9 +74,6 @@ func (pm *PortManager) SetPortStatus(port uint16, assigned bool) error {
pm.mu.Lock()
defer pm.mu.Unlock()
if _, exists := pm.ports[port]; !exists {
return fmt.Errorf("port %d already in use", port)
}
pm.ports[port] = assigned
return nil
}