cloudflare / cloudflare/cloudflared

🐛 Can't use Unix Sockets in Quick Tunnel mode

Open
#1,294 0 comments 2 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.

When you try to use a unix socket (`--unix-socket`) without a domain configured, `cloudflared` still asks for the --url parameter.

**To Reproduce**
Steps to reproduce the behavior:
1. Get a program to run on a unix socket
2. Run this comand
```bash
cloudflared tunnel --unix-socket /var/run/X.socket
```
If it's an issue with Cloudflare Tunnel:
4. Tunnel ID :
5. cloudflared config:

**Expected behavior**
A clear and concise description of what you expected to happen.

`cloudflared` tunneling the unix socket.

**Environment and versions**
- OS: Debian
- Architecture: X64
- Version:

**Logs and errors**
If applicable, add logs or errors to help explain your problem.

```
$ > ./cloudflared-linux-amd64 tunnel --unix-socket /var/run/X.socket
You did not specify any valid additional argument to the cloudflared tunnel command.
If you are trying to run a Quick Tunnel then you need to explicitly pass the --url flag.
Eg. cloudflared tunnel --url localhost:8080/.

Please note that Quick Tunnels are meant to be ephemeral and should only be used
for testing purposes.
For production usage, we recommend creating Named Tunnels. (https://developers.c
loudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-g
uide/)
```

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.