diff options
author | KrisChambers <Kris.chambers@outlook.com> | 2020-07-10 22:37:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 22:37:20 -0400 |
commit | d01eb6d9c506eef765fde8e40f9b90619b2ec83c (patch) | |
tree | 8e5b51dd36a0b9ad8a8dab2de46620cefff1cdc2 /std/http/server.ts | |
parent | 69e0886362623e1998f192dda72567b4e66b4117 (diff) |
Fix for issue #6685: --allow-net=:8080 broken (#6698)
Diffstat (limited to 'std/http/server.ts')
-rw-r--r-- | std/http/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/http/server.ts b/std/http/server.ts index cc0c7cca3..5908fcf9a 100644 --- a/std/http/server.ts +++ b/std/http/server.ts @@ -263,7 +263,7 @@ export function _parseAddrFromStr(addr: string): HTTPOptions { } return { - hostname: url.hostname, + hostname: url.hostname == "" ? "0.0.0.0" : url.hostname, port: url.port === "" ? 80 : Number(url.port), }; } |