Skip to content

Commit

Permalink
ioc2rpz is a place where threat intelligence meets DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
Homas committed Sep 26, 2019
1 parent e28c5f6 commit 80f6653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ioc2rpz.erl
Expand Up @@ -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])]}
Expand Down

0 comments on commit 80f6653

Please sign in to comment.