Skip to content

Conversation

@zhangming1994
Copy link

No description provided.

route.go Outdated
return func() {
log.Printf("Finish [%s] %s Took %.2fms\n", req.Method, req.RequestURI, time.Now().Sub(begin).Seconds()*1000)

(req.env["HTTP_X_FORWARDED_FOR"] || req.env["REMOTE_ADDR"]).split(",").map(&:strip).select { |ip| ip !~ /^10\./ && ip !~ /^172\.1[6-9]\./ && ip !~ /^172\.2[0-9]\./ && ip !~ /^172\.3[0-1]\./ && ip !~ /^192\.168\./ }[0] rescue ""
Copy link

Choose a reason for hiding this comment

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

This is not Go code.

@theplant-ci
Copy link

@zhangming1994: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants