Skip to content

Commit 51e2cb9

Browse files
committed
don't add interface addresses
1 parent 8519710 commit 51e2cb9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/werkzeug/serving.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,11 @@ def run_simple(
10811081
from .debug import DebuggedApplication
10821082

10831083
application = DebuggedApplication(application, evalex=use_evalex)
1084+
10841085
# Allow the specified hostname to use the debugger, in addition to
10851086
# localhost domains.
1086-
application.trusted_hosts.append(hostname)
1087+
if hostname not in {"0.0.0.0", "[::]"}:
1088+
application.trusted_hosts.append(hostname)
10871089

10881090
if not is_running_from_reloader():
10891091
fd = None

0 commit comments

Comments
 (0)