Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: TLSOptions.key and TLSOptions.cert does not accept BunFile[ ] #16912

Open
ianzone opened this issue Jan 30, 2025 · 0 comments
Open

[bug]: TLSOptions.key and TLSOptions.cert does not accept BunFile[ ] #16912

ianzone opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@ianzone
Copy link
Contributor

ianzone commented Jan 30, 2025

What version of Bun is running?

1.2.1+ce532901c

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Bun.listen({
  hostname: 'localhost',
  port: 8080,
  socket: {
    data: (socket, data) => {
      console.log(data.toString());
    },
  },
  tls: {
    key: [Bun.file('./first.key'), Bun.file('./second.key')],
    cert: [Bun.file('./first.crt'), Bun.file('./second.crt')],
  },
});

run it and it will crash

What is the expected behavior?

server runs

What do you see instead?

1 | Bun.listen({
        ^
error: Failed to listen on localhost:8080
      at /home/ian/projects/gh-proxy/bug.ts:1:5

Additional information

No response

@ianzone ianzone added bug Something isn't working needs triage labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant