Fix IPv6 listen default (#470)

Co-authored-by: KK <kk@KKs-Mac-Studio.local>
This commit is contained in:
tw19880217-creator
2026-05-06 02:24:34 -05:00
committed by GitHub
parent 0209372a6d
commit d13423b9dd
4 changed files with 29 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
import { describe, expect, it } from 'vitest'
import { getListenHost } from '../../packages/server/src/config'
describe('server config', () => {
it('does not force an IPv4 bind host by default', () => {
expect(getListenHost({})).toBeUndefined()
})
it('uses BIND_HOST when provided', () => {
expect(getListenHost({ BIND_HOST: ' :: ' })).toBe('::')
})
it('ignores blank BIND_HOST values', () => {
expect(getListenHost({ BIND_HOST: ' ' })).toBeUndefined()
})
})