Skip to content

Commit

Permalink
Add comment for blocked_addresses
Browse files Browse the repository at this point in the history
Signed-off-by: Elaine Chien <[email protected]>
  • Loading branch information
elainechien committed Jan 12, 2024
1 parent 1dd7ae4 commit 1187439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sample_packages/sample_python_package/src/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def send_https_post_request(called_from: str, print_logs: bool) -> None:
# Attempts to ping a subset of addresses that packages should not be able to
# ping. Checks if those addresses will send a packet back.
def connect_to_blocked_addresses(called_from: str, print_logs: bool) -> None:
# blocked_addresses is based off of ip addresses that we block access to in
# tools/network/iptables.rules
blocked_addresses = ["172.16.16.1", "169.254.169.254", "10.0.0.1",
"172.16.0.1", "192.168.0.1"]
successful_pings = []
Expand Down

0 comments on commit 1187439

Please sign in to comment.