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

Fix SplitHTTP Unix domain socket #3577

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Fix SplitHTTP Unix domain socket #3577

merged 2 commits into from
Jul 22, 2024

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
Collaborator

@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
Collaborator

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
36 checks passed
@mmmray
Copy link
Collaborator

mmmray commented Jul 22, 2024

thank you!

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