Commit dc08987
committed
Use pure-Go DNS resolver to fix Private Link/PSC connectivity on macOS
On macOS, the default cgo DNS resolver can bypass split-horizon DNS
configurations, causing workspace URLs to resolve to public IPs instead
of private endpoints. This leads to confusing "IP blocked by ACL" errors
when using Private Link or Private Service Connect.
Setting PreferGo: true on the net.Resolver ensures the pure-Go DNS
resolver is used, which correctly respects system DNS settings including
private DNS zones. This is scoped to the SDK's HTTP client only and
falls back to the cgo resolver if the Go resolver fails.
Signed-off-by: Ilia Lazebnik <ilia.lazebnik@gmail.com>1 parent dbe0e8a commit dc08987
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments