修复bug,DNS欺骗ip删除传入fake id
This commit is contained in:
@@ -78,10 +78,10 @@ public class DnsIpCfgController extends BaseController {
|
||||
@RequestMapping("delete")
|
||||
public String delete(Model model, HttpServletRequest request,
|
||||
HttpServletResponse response, DnsIpCfg dnsIpCfg) {
|
||||
String cfgIds = dnsIpCfg.getCfgIds();
|
||||
if (!StringUtils.isEmpty(cfgIds)) {
|
||||
String fakeIds = dnsIpCfg.getFakeIds();
|
||||
if (!StringUtils.isEmpty(fakeIds)) {
|
||||
try {
|
||||
dnsIpCfgService.delete(cfgIds);
|
||||
dnsIpCfgService.delete(fakeIds);
|
||||
addMessage(model, "delete_success");
|
||||
} catch (Exception e) {
|
||||
logger.error("删除失败", e);
|
||||
|
||||
Reference in New Issue
Block a user