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

Commit 0a1b7ae

Browse files
chore: Restrict GraphServer to localhost traffic only in Jupyter mode (#220)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery-magics/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 6a5de39 commit 0a1b7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)