René's URL Explorer Experiment


Title: antigravity-ls-proxy: ANTIGRAVITY_LS_ADDRESS port parsed with bare parseInt — malformed addresses silently discarded, managed daemon spawned instead · Issue #494 · developing-today/code · GitHub

Open Graph Title: antigravity-ls-proxy: ANTIGRAVITY_LS_ADDRESS port parsed with bare parseInt — malformed addresses silently discarded, managed daemon spawned instead · Issue #494 · developing-today/code

X Title: antigravity-ls-proxy: ANTIGRAVITY_LS_ADDRESS port parsed with bare parseInt — malformed addresses silently discarded, managed daemon spawned instead · Issue #494 · developing-today/code

Description: Problem bin/antigravity-ls-proxy.mjs validates its own listen port strictly via the shared parseProxyPort helper (#483), but the port it connects to — taken from the operator-supplied ANTIGRAVITY_LS_ADDRESS env var — is parsed with a bar...

Open Graph Description: Problem bin/antigravity-ls-proxy.mjs validates its own listen port strictly via the shared parseProxyPort helper (#483), but the port it connects to — taken from the operator-supplied ANTIGRAVITY_L...

X Description: Problem bin/antigravity-ls-proxy.mjs validates its own listen port strictly via the shared parseProxyPort helper (#483), but the port it connects to — taken from the operator-supplied ANTIGRAVITY_L...

Opengraph URL: https://github.com/developing-today/code/issues/494

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"antigravity-ls-proxy: ANTIGRAVITY_LS_ADDRESS port parsed with bare parseInt — malformed addresses silently discarded, managed daemon spawned instead","articleBody":"## Problem\n\n`bin/antigravity-ls-proxy.mjs` validates its own listen port strictly via the shared `parseProxyPort` helper (#483), but the port it *connects to* — taken from the operator-supplied `ANTIGRAVITY_LS_ADDRESS` env var — is parsed with a bare `parseInt` and no validation at all.\n\n`bin/antigravity-ls-proxy.mjs:199-202` (`LanguageServerManager.detectRunningInstances`):\n\n```js\nif (process.env.ANTIGRAVITY_LS_ADDRESS && process.env.ANTIGRAVITY_CSRF_TOKEN) {\n  const parts = process.env.ANTIGRAVITY_LS_ADDRESS.split(':');\n  const port = parseInt(parts[parts.length - 1], 10);\n  return [{ port, token: process.env.ANTIGRAVITY_CSRF_TOKEN }];\n}\n```\n\nThis branch returns immediately, bypassing even the weak check in the `add()` helper below it (`p > 0`, lines 207-214 — which itself has no `\u003c= 65535` upper bound, so candidate ports discovered from `ps`/`ss`/`lsof`/log lines are also unbounded above).\n\n## Evidence (verified this run on main 72a52d4d)\n\nReplaying the exact lines 200-202 logic in Node:\n\n| `ANTIGRAVITY_LS_ADDRESS` | resulting candidate port |\n|---|---|\n| `127.0.0.1:abc` | `NaN` |\n| `127.0.0.1:` | `NaN` |\n| `127.0.0.1:99999` | `99999` |\n| `127.0.0.1:0` | `0` |\n| `127.0.0.1:-5` | `-5` |\n| `127.0.0.1:18745abc` | `18745` (trailing junk silently dropped) |\n| `127.0.0.1:18745.9` | `18745` (fraction silently dropped) |\n\nAnd the `add()` helper accepts `99999` / `65536` as candidate ports.\n\n## Why it matters\n\n- `ensureActive()` (line 271+) heartbeats each candidate via `checkHeartbeat(port, token)`, which fetches `http://127.0.0.1:${port}/...`. With `NaN`, `0`, `-5` or `99999` that fetch simply fails and is swallowed (`catch { return false }`), so a typo'd explicit address is **silently discarded** and the proxy falls through to `startManagedDaemon()` — spawning a second, managed language server instead of telling the operator their configured address is malformed. That masks configuration errors and can attach the session to the wrong (fresh) server.\n- `18745abc` / `18745.9` silently connect to port 18745, the same wrong-port class #483 fixed for the `*_PROXY_PORT` listen ports.\n- The #483 guard test (`bin/proxy-port.test.mjs`, \"all seven parse sites…\") only regexes `parseInt(process.env.[A-Z_]*PROXY_PORT`, so this site — an `*_ADDRESS`, not a `*_PROXY_PORT` — slips past the guard that was meant to prevent regressions of this class.\n\n## Suggested fix / acceptance criteria\n\n- [ ] The `ANTIGRAVITY_LS_ADDRESS` port is validated strictly (digits only, integer 1-65535), reusing `parseProxyPortValue` from `bin/proxy-port.mjs` where practical; a malformed address fails fast with an error naming `ANTIGRAVITY_LS_ADDRESS` and the offending value, instead of silently falling back to a managed daemon.\n- [ ] The `add()` candidate helper rejects ports > 65535 as well as `\u003c= 0` / `NaN`.\n- [ ] Regression tests cover at least: `abc`, empty port, `0`, `99999`, `18745abc`, `18745.9`, and a valid `host:18745`; and the #483 guard test (or a new one) catches a bare `parseInt` on the `ANTIGRAVITY_LS_ADDRESS` path.\n- [ ] `node --test bin/proxy-port.test.mjs` (plus any new test file) passes.\n\nDedup: #483 covered only the `*_PROXY_PORT` listen ports (closed); #435 is about single-sourcing the proxies' port *configuration* in opencode config, not about validating this address; no open or closed issue covers `ANTIGRAVITY_LS_ADDRESS` parsing.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T16:39:09Z","url":"https://github.com/developing-today/code/issues/494"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ff92ba4-e474-92a8-b081-bcdb0a00afee
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCC0:74E58:8598FE:B30198:6B06366F
html-safe-nonce16330668b59618aeab7d8f4245abc1e86d4d914411becefc5d3689f22f6a3a5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0MwOjc0RTU4Ojg1OThGRTpCMzAxOTg6NkIwNjM2NkYiLCJ2aXNpdG9yX2lkIjoiODYxOTk2MjkxMzQ4MDEyODExMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac819703ecb699b9427fc8eb54f360070f35693171bedfb5151b49f6c2674f130f
hovercard-subject-tagissue:5964600772
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/494/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ad1b4691513cb7fb34b9079f2cb15658add7cdb2c53f873ee78412d08cf4a25e/developing-today/code/issues/494
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad1b4691513cb7fb34b9079f2cb15658add7cdb2c53f873ee78412d08cf4a25e/developing-today/code/issues/494
og:image:altProblem bin/antigravity-ls-proxy.mjs validates its own listen port strictly via the shared parseProxyPort helper (#483), but the port it connects to — taken from the operator-supplied ANTIGRAVITY_L...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/494#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F494
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F494
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/494
Reloadhttps://github.com/developing-today/code/issues/494
Reloadhttps://github.com/developing-today/code/issues/494
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests155 (155)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/494
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/494
#495https://github.com/developing-today/code/pull/495
antigravity-ls-proxy: ANTIGRAVITY_LS_ADDRESS port parsed with bare parseInt — malformed addresses silently discarded, managed daemon spawned insteadhttps://github.com/developing-today/code/issues/494#top
#495https://github.com/developing-today/code/pull/495
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/494#issue-5964600772
#483https://github.com/developing-today/code/issues/483
72a52d4https://github.com/developing-today/code/commit/72a52d4d30f5c17f08bc6dacaa5aedafdb28ade0
bin proxies: *_PROXY_PORT parsed with bare parseInt — invalid values crash opaquely or bind the wrong port #483https://github.com/developing-today/code/issues/483
bin proxies: *_PROXY_PORT parsed with bare parseInt — invalid values crash opaquely or bind the wrong port #483https://github.com/developing-today/code/issues/483
bin proxies: *_PROXY_PORT parsed with bare parseInt — invalid values crash opaquely or bind the wrong port #483https://github.com/developing-today/code/issues/483
#483https://github.com/developing-today/code/issues/483
#435https://github.com/developing-today/code/issues/435
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/494#event-33867190881
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/494#event-33867557819
Merge pull request #495 from developing-today/creator/494-antigravity…https://github.com/developing-today/code/commit/d7a6d90911dd12414c9df2d8daab83a825f88cf1
#495https://github.com/developing-today/code/pull/495
d7a6d90https://github.com/developing-today/code/commit/d7a6d90911dd12414c9df2d8daab83a825f88cf1
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#495https://github.com/developing-today/code/pull/495
on Oct 21, 2026https://github.com/developing-today/code/issues/494#event-33867557944
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/494
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/494
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.