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

modified action.js and qor_default.hs #143

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

modified action.js and qor_default.hs #143

wants to merge 12 commits into from

Conversation

zhangming1994
Copy link

No description provided.

route.go Outdated
@@ -216,7 +230,11 @@ func (serveMux *serveMux) ServeHTTP(w http.ResponseWriter, req *http.Request) {
defer func() func() {
begin := time.Now()
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.

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