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
4 changes: 2 additions & 2 deletions agent/app/dto/request/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ type NginxCommonReq struct {

type NginxAntiLeechUpdate struct {
WebsiteID uint `json:"websiteID" validate:"required"`
Extends string `json:"extends" validate:"required"`
Return string `json:"return" validate:"required"`
Extends string `json:"extends"`
Return string `json:"return"`
Enable bool `json:"enable" `
ServerNames []string `json:"serverNames"`
Cache bool `json:"cache"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ const update = async (enable: boolean) => {
if (enable) {
updateDomainsString();
form.serverNames = form.domains.split('\n');
}
if (!checkReturn()) {
return;
if (!checkReturn()) {
return;
}
}
form.enable = enable;
loading.value = true;
Expand Down
Loading