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 parseTarget for unix socket address without scheme #1611

Merged
merged 3 commits into from
Oct 23, 2017

Conversation

menghanl
Copy link
Contributor

The leading "/" was mistakenly stripped by parseTarget.

@menghanl menghanl requested a review from dfawley October 23, 2017 22:52
spl := strings.SplitN(s, sep, 2)
if len(spl) < 2 {
return "", s
return "", s, false
Copy link
Member

Choose a reason for hiding this comment

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

return "", "", false? We don't need s anyway.

targetStr string
want resolver.Target
}{
{"", resolver.Target{"", "", ""}},
Copy link
Member

Choose a reason for hiding this comment

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

":///" ?

"://" ?

@menghanl menghanl merged commit 0d57c57 into grpc:master Oct 23, 2017
@menghanl menghanl deleted the parse_target_no_scheme branch October 23, 2017 23:34
menghanl added a commit to menghanl/grpc-go that referenced this pull request Oct 25, 2017
@menghanl menghanl added this to the 1.8 Release milestone Nov 7, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants