mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Fix de la détection d'ipv6
This commit is contained in:
parent
917c2b2b09
commit
1b7617dd75
1 changed files with 2 additions and 2 deletions
|
@ -1114,7 +1114,7 @@ def ouverture_ports(request):
|
|||
continue
|
||||
if i.ipv4:
|
||||
r['ipv4'][i.ipv4.ipv4] = {"tcp_in":[],"tcp_out":[],"udp_in":[],"udp_out":[]}
|
||||
if i.ipv6:
|
||||
if i.ipv6_object:
|
||||
r['ipv6'][i.ipv6] = {"tcp_in":[],"tcp_out":[],"udp_in":[],"udp_out":[]}
|
||||
for j in i.port_lists.all():
|
||||
if i.ipv4:
|
||||
|
@ -1122,7 +1122,7 @@ def ouverture_ports(request):
|
|||
r['ipv4'][i.ipv4.ipv4]["tcp_out"].extend(j.tcp_ports_out())
|
||||
r['ipv4'][i.ipv4.ipv4]["udp_in"].extend(j.udp_ports_in())
|
||||
r['ipv4'][i.ipv4.ipv4]["udp_out"].extend(j.udp_ports_out())
|
||||
if i.ipv6:
|
||||
if i.ipv6_object:
|
||||
r['ipv6'][i.ipv6]["tcp_in"].extend(j.tcp_ports_in())
|
||||
r['ipv6'][i.ipv6]["tcp_out"].extend(j.tcp_ports_out())
|
||||
r['ipv6'][i.ipv6]["udp_in"].extend(j.udp_ports_in())
|
||||
|
|
Loading…
Reference in a new issue