Skip to content

Commit

Permalink
fix(@angular-devkit/build-webpack): check server address type before use
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and vikerman committed Mar 11, 2019
1 parent 1357ea2 commit 54ad086
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ export function runWebpackDevServer(
if (err) {
obs.error(err);
} else {
const address = this.address();
result = {
success: true,
port: this.address().port,
family: this.address().family,
address: this.address().address,
port: typeof address === 'string' ? 0 : address.port,
family: typeof address === 'string' ? '' : address.family,
address: typeof address === 'string' ? address : address.address,
};
}
},
Expand Down

0 comments on commit 54ad086

Please sign in to comment.