Skip to content

Commit

Permalink
Add loopback network for private network check
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakramer committed Aug 5, 2021
1 parent 1ae17f9 commit faa2c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions koapy/utils/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def is_in_private_network(host):
ip_address = ipaddress.ip_address(host)
private_networks = [
"10.0.0.0/8",
"127.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
]
Expand Down

0 comments on commit faa2c55

Please sign in to comment.