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

save client's ip version on session #63

Merged
merged 1 commit into from Oct 5, 2018
Merged

Conversation

henrod
Copy link
Contributor

@henrod henrod commented Oct 5, 2018

No description provided.

if err != nil {
a.SetStatus(constants.StatusClosed)
return fmt.Errorf("Invalid handshake data. Id=%d", a.Session.ID())
}

a.Session.SetHandshakeData(handshakeData)
a.SetStatus(constants.StatusHandshake)
a.Session.Set(constants.IPVersionKey, a.IPVersion())

Choose a reason for hiding this comment

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

Error return value of a.Session.Set is not checked

@coveralls
Copy link

coveralls commented Oct 5, 2018

Pull Request Test Coverage Report for Build 602

  • 13 of 17 (76.47%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 75.005%

Changes Missing Coverage Covered Lines Changed/Added Lines %
acceptor/tcp_acceptor.go 3 5 60.0%
service/handler.go 2 4 50.0%
Totals Coverage Status
Change from base Build 585: 0.03%
Covered Lines: 3970
Relevant Lines: 5293

💛 - Coveralls

@henrod henrod requested a review from felipejfc October 5, 2018 18:52
Copy link
Contributor

@felipejfc felipejfc left a comment

Choose a reason for hiding this comment

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

LGTM

@henrod henrod merged commit 1c76c4a into master Oct 5, 2018
@henrod henrod deleted the feature/proxy-protocol branch December 26, 2018 13: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.

None yet

4 participants