Showing
1 changed file
with
3 additions
and
1 deletions
@@ -156,7 +156,9 @@ public class MaliciousIpController { | @@ -156,7 +156,9 @@ public class MaliciousIpController { | ||
156 | return rtnBaseResponse; | 156 | return rtnBaseResponse; |
157 | } | 157 | } |
158 | 158 | ||
159 | - private List<String> getNginxHost(){ | 159 | + @RequestMapping("/getNginxHost") |
160 | + @ResponseBody | ||
161 | + public List<String> getNginxHost(){ | ||
160 | List<HostInfo> hostInfoList= hostInfoService.getHostInfosByTag("upstream-switch"); | 162 | List<HostInfo> hostInfoList= hostInfoService.getHostInfosByTag("upstream-switch"); |
161 | List<String> ips=new ArrayList<>(); | 163 | List<String> ips=new ArrayList<>(); |
162 | if(hostInfoList!=null&&hostInfoList.size()>0){ | 164 | if(hostInfoList!=null&&hostInfoList.size()>0){ |
-
Please register or login to post a comment