Skip to content

Commit

Permalink
fix: state check for proxy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Sep 13, 2024
1 parent a2f5788 commit 2f4225c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/instance/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
)

func (n *network) AddHost(ctx context.Context, port int) (host string, err error) {
if !n.instance.IsInState(StateStarted, StatePreparing) {
if !n.instance.IsInState(StateStarted, StatePreparing, StateCommitted) {
return "", ErrAddingHostToProxyNotAllowed.WithParams(n.instance.state.String())
}

Expand Down

0 comments on commit 2f4225c

Please sign in to comment.