Skip to content

Commit

Permalink
fix: undefined network (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
clock157 authored and sorrycc committed Nov 20, 2018
1 parent 0ac5b11 commit 7ed9241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/af-webpack/src/prepareUrls.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function prepareUrls(protocol, host, port, pathname) {
// Check if the address is a private ip
// https://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces
if (
/^10[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(
/^10[.]|^30[.]|^172[.](1[6-9]|2[0-9]|3[0-1])[.]|^192[.]168[.]/.test(
lanUrlForConfig,
)
) {
Expand Down

0 comments on commit 7ed9241

Please sign in to comment.