Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 6c2121a

Browse files
committed
Add support for setting DISABLE_IP_CHECK environment variable
1 parent 11fe263 commit 6c2121a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github-circleci-trigger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
def ip_check(func):
1717
@wraps(func)
1818
def with_ip_check(*args, **kwargs):
19+
20+
if int(os.environ.get('DISABLE_IP_CHECK', False)):
21+
return func(*args, **kwargs)
22+
1923
# Store the IP address of the requester
2024
request_ip = ip_address(u'{0}'.format(request.remote_addr))
2125

0 commit comments

Comments
 (0)