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

Commit e6ea7ec

Browse files
committed
Add comment for dns_prefix local variable
1 parent 44d5845 commit e6ea7ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

google/api_core/grpc_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ def _modify_target_for_direct_path(target: str) -> str:
406406
original target may already denote Direct Path.
407407
"""
408408

409+
# A DNS prefix may be included with the target to indicate the endpoint is living in the Internet,
410+
# outside of Google Cloud Platform.
409411
dns_prefix = "dns:///"
410412
# Remove "dns:///" if `attempt_direct_path` is set to True as
411413
# the Direct Path prefix `google-c2p:///` will be used instead.

0 commit comments

Comments
 (0)