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

Chore: Improved log messaging #4050

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Chore: Improved log messaging #4050

merged 2 commits into from
Nov 25, 2024

Conversation

red-avtovo
Copy link
Contributor

@red-avtovo red-avtovo commented Nov 21, 2024

There is a line that appeared in my logs that is quite ambiguous. Only after reading the source code could I understand what that meant. Fixing that to make the reason for the Warn clearer

}
case "":
inbound.CanSpliceCopy = 3
if account.Flow == vless.XRV && (request.Command == protocol.RequestCommandTCP || isMuxAndNotXUDP(request, first)) {
return errors.New(account.ID.String() + " is not able to use \"\". Note that the pure TLS proxy has certain TLS in TLS characters.").AtWarning()
return errors.New("account " + account.ID.String() + " is not able to use the flow \"none\". Note that the pure TLS proxy has certain TLS in TLS characters.").AtWarning()
Copy link
Member

Choose a reason for hiding this comment

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

Since there is no such flow as "none". Maybe better to say
..is rejected since the client flow is empty

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it makes sense. I will update the wording

@yuhan6665 yuhan6665 changed the title Improved log messaging Chore: Improved log messaging Nov 25, 2024
@yuhan6665 yuhan6665 merged commit d8934cf into XTLS:main Nov 25, 2024
35 of 36 checks passed
@yuhan6665
Copy link
Member

Thanks!

@red-avtovo red-avtovo deleted the patch-1 branch November 25, 2024 17:06
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