Skip to content

Feature request: support Unix domain socket path in inbound Listen field #4429

@w3struk

Description

@w3struk

Is your feature request related to a problem?

No

Describe the solution you'd like

Currently, the inbound Listen field only accepts IP addresses. Unix socket support would enable architectures where Caddy (or another reverse proxy) communicates with Xray via local sockets instead of TCP 127.0.0.1:<port>. This is useful for:

  1. Security — no TCP port listening at all (even localhost), access controlled by filesystem permissions
  2. Performance — avoids TCP stack overhead for local IPC
  3. Architecture parity with Reality fallback — Xray already uses Unix sockets for fallback dest ("dest": "/run/xray/xhttp_in.sock") and for realitySettings.target. It's inconsistent that the listen field of an inbound cannot use the same mechanism.

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions