Skip to content
Permalink
Browse files

ioc2rpz is a place where threat intelligence meets DNS

  • Loading branch information...
Homas committed Sep 26, 2019
1 parent e28c5f6 commit 80f6653c375a33c204bcf5a23c54c1517aed7925
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ioc2rpz.erl
@@ -988,7 +988,7 @@ gen_rpzrule(Domain,RPZ,TTL,<<"false">>,Action,_,PktHLen,T_ZIP_L) when Action==<<
{error, _} ->
{ok,0,[],[]};
{_,BDomain} -> %ok, zip
{_,LocDataZ} = domstr_to_bin_zip({ok,LocData},0,PktHLen+10+byte_size(BDomain),T_ZIP_L), % what is 10??
{_,LocDataZ} = domstr_to_bin_zip({ok,[LocData]},0,PktHLen+10+byte_size(BDomain),T_ZIP_L), % what is 10??
% {_,LocDataZ} = domstr_to_bin(LocData,0),
ELDS=byte_size(LocDataZ),
{ok,1,[list_to_binary([BDomain,<<?T_CNAME:16,?C_IN:16, TTL:32,ELDS:16>>,LocDataZ])],[list_to_binary([<<?T_CNAME:16,?C_IN:16, TTL:32,ELDS:16>>,LocDataZ])]}

0 comments on commit 80f6653

Please sign in to comment.
You can’t perform that action at this time.