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
6 changes: 4 additions & 2 deletions backend/app/service/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,10 @@ func (u *FirewallService) addPortsBeforeStart(client firewall.FirewallClient) er
}
apps := u.loadPortByApp()
for _, app := range apps {
if err := client.Port(fireClient.FireInfo{Port: app.HttpPort, Protocol: "tcp", Strategy: "accept"}, "add"); err != nil {
return err
if len(app.HttpPort) != 0 && app.HttpPort != "0" {
if err := client.Port(fireClient.FireInfo{Port: app.HttpPort, Protocol: "tcp", Strategy: "accept"}, "add"); err != nil {
return err
}
}
}

Expand Down
1 change: 0 additions & 1 deletion frontend/src/views/cronjob/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ const onDelete = async (row: Cronjob.CronjobInfo | null) => {
if (hasBackup(row.type)) {
showClean.value = true;
}
return;
} else {
for (const item of selects.value) {
names.push(item.name);
Expand Down