Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions agent/app/service/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ func (r *RuntimeService) Page(req request.RuntimeSearch) (int64, []response.Runt
continue
}
hostIP := envs[fmt.Sprintf("HOST_IP_%s", matches[1])]
if hostIP == "" {
hostIP = "0.0.0.0"
}
runtimeDTO.ExposedPorts = append(runtimeDTO.ExposedPorts, request.ExposedPort{
ContainerPort: containerPort,
HostPort: hostPort,
Expand Down
3 changes: 0 additions & 3 deletions agent/app/service/runtime_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,6 @@ func handleRuntimeDTO(res *response.RuntimeDTO, runtime model.Runtime) error {
return err
}
hostIP := envs[fmt.Sprintf("HOST_IP_%s", matches[1])]
if hostIP == "" {
hostIP = "0.0.0.0"
}
res.ExposedPorts = append(res.ExposedPorts, request.ExposedPort{
ContainerPort: containerPort,
HostPort: hostPort,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/runtime/components/port/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</el-col>
<el-col :span="7">
<el-text>{{ $t('app.allowPort') }}</el-text>
<el-switch class="ml-1" v-model="port.hostIP" :active-value="'0.0.0.0'" :inactive-value="'127.0.0.1'" />
<el-switch class="ml-1" v-model="port.hostIP" :active-value="''" :inactive-value="'127.0.0.1'" />
</el-col>
<el-col :span="2">
<el-form-item>
Expand Down Expand Up @@ -51,7 +51,7 @@ const addPort = () => {
props.exposedPorts.push({
hostPort: undefined,
containerPort: undefined,
hostIP: '0.0.0.0',
hostIP: '',
});
};

Expand Down
Loading