Fix IPv6 listen default (#470)
Co-authored-by: KK <kk@KKs-Mac-Studio.local>
This commit is contained in:
committed by
GitHub
parent
0209372a6d
commit
d13423b9dd
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user