소스 검색

Merge pull request #33 from crowdsecurity/cscli_calculate_ips

add missing IPs calculation
Thibault "bui" Koechlin 5 년 전
부모
커밋
2e0b0597c5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      cmd/crowdsec-cli/ban.go

+ 2 - 0
cmd/crowdsec-cli/ban.go

@@ -64,6 +64,8 @@ func simpleBanToSignal(targetIP string, reason string, expirationStr string, act
 		if parsedIP == nil {
 			return signalOcc, fmt.Errorf("'%s' is not a valid IP", targetIP)
 		}
+		banApp.StartIp = types.IP2Int(parsedIP)
+		banApp.EndIp = types.IP2Int(parsedIP)
 	}
 
 	var banApps = make([]types.BanApplication, 1)