修正http转发头字段值错误 (#521)
This commit is contained in:
@@ -2,7 +2,7 @@ package httpx
|
|||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
const xForwardFor = "X-Forward-For"
|
const xForwardFor = "X-Forwarded-For"
|
||||||
|
|
||||||
// GetRemoteAddr returns the peer address, supports X-Forward-For.
|
// GetRemoteAddr returns the peer address, supports X-Forward-For.
|
||||||
func GetRemoteAddr(r *http.Request) string {
|
func GetRemoteAddr(r *http.Request) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user