File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,13 @@ export class HttpConfig {
195
195
rawExternalUrlConfig : ExternalUrlConfig
196
196
) {
197
197
this . autoListen = rawHttpConfig . autoListen ;
198
- this . host = rawHttpConfig . host ;
198
+ // TODO: Consider dropping support for '0' in v8.0.0. This value is passed
199
+ // to hapi, which validates it. Prior to hapi v20, '0' was considered a
200
+ // valid host, however the validation logic internally in hapi was
201
+ // re-written for v20 and hapi no longer considers '0' a valid host. For
202
+ // details, see:
203
+ // https://github.com/elastic/kibana/issues/86716#issuecomment-749623781
204
+ this . host = rawHttpConfig . host === '0' ? '0.0.0.0' : rawHttpConfig . host ;
199
205
this . port = rawHttpConfig . port ;
200
206
this . cors = rawHttpConfig . cors ;
201
207
this . customResponseHeaders = Object . entries ( rawHttpConfig . customResponseHeaders ?? { } ) . reduce (
You can’t perform that action at this time.
0 commit comments