Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit c869ba5

Browse files
committed
chore: Restrict GraphServer to localhost traffic only in Jupyter mode
1 parent 6a5de39 commit c869ba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bigquery_magics/graph_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class ThreadedTCPServer(socketserver.TCPServer):
315315
# Daemon threads automatically terminate when the main program exits
316316
daemon_threads = True
317317

318-
with ThreadedTCPServer(("", self.port), GraphServerHandler) as httpd:
318+
with ThreadedTCPServer(("127.0.0.1", self.port), GraphServerHandler) as httpd:
319319
self._server = httpd
320320
self._server.serve_forever()
321321

0 commit comments

Comments
 (0)