修复bug,DNS欺骗ip删除传入fake id

This commit is contained in:
wangxin
2018-03-28 10:16:27 +08:00
parent e3d8a491b1
commit 9f8ead8635
6 changed files with 43 additions and 19 deletions

View File

@@ -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);