File tree 1 file changed +6
-5
lines changed
components/supervisor/pkg/ports
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -350,19 +350,20 @@ func (pm *Manager) nextState(ctx context.Context) map[uint32]*managedPort {
350
350
// 2. second capture configured since we don't want to auto expose already exposed ports
351
351
if pm .configs != nil {
352
352
pm .configs .ForEach (func (port uint32 , config * gitpod.PortConfig ) {
353
- if pm .boundInternally (port ) {
354
- return
355
- }
356
-
357
353
mp , exists := state [port ]
358
354
if ! exists {
359
355
mp = & managedPort {}
360
356
state [port ] = mp
361
357
}
362
- mp .LocalhostPort = port
363
358
mp .Description = config .Description
364
359
mp .Name = config .Name
365
360
361
+ if pm .boundInternally (port ) {
362
+ return
363
+ }
364
+
365
+ mp .LocalhostPort = port
366
+
366
367
autoExpose , autoExposed := pm .autoExposed [port ]
367
368
if autoExposed {
368
369
mp .AutoExposure = autoExpose .state
You can’t perform that action at this time.
0 commit comments