test: add more tests (#1150)

This commit is contained in:
Kevin Wan
2021-10-20 17:50:01 +08:00
committed by GitHub
parent a944a7fd7e
commit 5636bf4955
2 changed files with 8 additions and 0 deletions

View File

@@ -10,5 +10,6 @@ func GetRemoteAddr(r *http.Request) string {
if len(v) > 0 {
return v
}
return r.RemoteAddr
}