Skip to content

Fix SplitHTTP Unix domain socket#3577

Merged
mmmray merged 2 commits intoXTLS:mainfrom
hellokindle:main
Jul 22, 2024
Merged

Fix SplitHTTP Unix domain socket#3577
mmmray merged 2 commits intoXTLS:mainfrom
hellokindle:main

Conversation

@hellokindle
Copy link
Contributor

@hellokindle hellokindle commented Jul 22, 2024

This bug is introduced in v1.18.20, the unix domain socket works well before.

I don't know too much about golang and fix it with reference to the previous code.

Copy link
Contributor

@mmmray mmmray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in main branch, it seems l.server may be nil or unset if uds is used

will add a test later

if err != nil {
return err
}
req.ContentLength = contentLength
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing a random crash I found while writing the test. It only occurs if you set a host that is syntactically invalid, in an xray client that uses domain sockets in outbound.

@mmmray mmmray merged commit edae38c into XTLS:main Jul 22, 2024
@mmmray
Copy link
Contributor

mmmray commented Jul 22, 2024

thank you!

leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants