Skip to content

Commit bd5849d

Browse files
committed
Development: Allow more internal IPs from 10.0.2.0/24
1 parent e7af4f4 commit bd5849d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

development_settings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# idea via https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
77
import socket
88
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
9-
INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
9+
INTERNAL_IPS = ["127.0.0.1"]
10+
ips += ["10.0.2.2"]
1011
for ip in ips:
1112
for i in range(0, 20):
1213
INTERNAL_IPS += [ip[: ip.rfind(".")] + "." + str(i)]

0 commit comments

Comments
 (0)