Skip to content

Commit 923f56e

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): show --disable-host-check warning only when not using disableHostCheck
Closes #20951 (cherry picked from commit 7ff41e4)
1 parent b0dd4e1 commit 923f56e

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/dev-server/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export function serveWebpackBrowser(
226226
}
227227

228228
if (
229+
!options.disableHostCheck &&
229230
options.host &&
230231
!/^127\.\d+\.\d+\.\d+/g.test(options.host) &&
231232
options.host !== 'localhost'

0 commit comments

Comments
 (0)