We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3500e commit 9252fffCopy full SHA for 9252fff
src/commands.ts
@@ -686,6 +686,8 @@ async function maybeCoderConnectAddr(
686
const coderConnectHostname = `${agent}.${workspace}.${owner}.${hostnameSuffix}`
687
try {
688
const res = await promisify(lookup)(coderConnectHostname)
689
+ // Captive DNS portals may return an unrelated address, so we check it's
690
+ // within the Coder Service Prefix.
691
return res.family === 6 && ipRangeCheck(res.address, "fd60:627a:a42b::/48") ? coderConnectHostname : undefined
692
} catch {
693
return undefined
0 commit comments