diff options
| author | 2022-09-17 04:31:29 -0700 | |
|---|---|---|
| committer | 2022-09-17 04:31:29 -0700 | |
| commit | b4f8e5cdb97ca30103900592002d23ad0a0f4eb2 (patch) | |
| tree | 0739572e71b522d5c3bb9ac23a13582244ddfbad | |
| parent | cefec77646a1710fbc2994a18830f3c2a9ac5670 (diff) | |
| download | bun-b4f8e5cdb97ca30103900592002d23ad0a0f4eb2.tar.gz bun-b4f8e5cdb97ca30103900592002d23ad0a0f4eb2.tar.zst bun-b4f8e5cdb97ca30103900592002d23ad0a0f4eb2.zip | |
Fix default hostname
| -rw-r--r-- | src/bun.js/api/server.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/api/server.zig b/src/bun.js/api/server.zig index 22c8b748e..535666d2a 100644 --- a/src/bun.js/api/server.zig +++ b/src/bun.js/api/server.zig @@ -389,7 +389,7 @@ pub const ServerConfig = struct { } } else { const hostname: string = - if (has_hostname and std.mem.span(args.hostname).len > 0) std.mem.span(args.hostname) else "localhost"; + if (has_hostname and std.mem.span(args.hostname).len > 0) std.mem.span(args.hostname) else "0.0.0.0"; const protocol: string = if (args.ssl_config != null) "https" else "http"; args.base_uri = (if ((args.port == 80 and args.ssl_config == null) or (args.port == 443 and args.ssl_config != null)) |
