We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8519710 commit 51e2cb9Copy full SHA for 51e2cb9
1 file changed
src/werkzeug/serving.py
@@ -1081,9 +1081,11 @@ def run_simple(
1081
from .debug import DebuggedApplication
1082
1083
application = DebuggedApplication(application, evalex=use_evalex)
1084
+
1085
# Allow the specified hostname to use the debugger, in addition to
1086
# localhost domains.
- application.trusted_hosts.append(hostname)
1087
+ if hostname not in {"0.0.0.0", "[::]"}:
1088
+ application.trusted_hosts.append(hostname)
1089
1090
if not is_running_from_reloader():
1091
fd = None
0 commit comments