Skip to content

Commit ddd3ced

Browse files
jeanp413roboquat
authored andcommitted
Only ignore served ports bound to the workspace IP address if we have corresponding reverse proxy
1 parent 301f6c4 commit ddd3ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/supervisor/pkg/ports/ports.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ func (pm *Manager) updateState(ctx context.Context, exposed []ExposedPort, serve
259259
if served != nil {
260260
servedMap := make(map[uint32]ServedPort)
261261
for _, port := range served {
262-
if port.Address.String() == workspaceIPAdress {
262+
if _, existProxy := pm.proxies[port.Port]; existProxy && port.Address.String() == workspaceIPAdress {
263263
// Ignore entries that are bound to the workspace ip address
264-
// as they are created by the reverse proxy
264+
// as they are created by the internal reverse proxy
265265
continue
266266
}
267267

0 commit comments

Comments
 (0)