tianxiaoliang commented on a change in pull request #90: #79 record polling
history
URL: https://github.com/apache/servicecomb-kie/pull/90#discussion_r377981474
##########
File path: server/resource/v1/common.go
##########
@@ -232,3 +233,20 @@ func queryAndResponse(rctx *restful.Context,
openlogging.Error(err.Error())
}
}
+
+//ClientIP try to get ip from http header
+func ClientIP(r *http.Request) string {
Review comment:
这个放到pkg包下,属于通用lib
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services