mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-01 05:19:31 +00:00
fix: accept localhost and hostnames in validateConnectionIP (#1531)
validateConnectionIP rejected "localhost" (written by local cloud) and hostnames like "ssh.app.daytona.io" (written by Daytona), causing mergeLastConnection to silently discard connection data. This broke spawn list and spawn delete for these providers. - Add "localhost" to CONNECTION_SENTINELS - Add HOSTNAME_PATTERN for valid multi-label DNS hostnames - Update tests: localhost now valid, add hostname acceptance/rejection tests Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6782618b7c
commit
3570caa840
3 changed files with 28 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.5.18",
|
||||
"version": "0.5.19",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue