0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-19 23:24:07 +01:00
gitea/modules/private
Lunny Xiao 1428877c37
log real ip of requests from ssh (#21216)
Partially fix #21213.

This PR will get client IP address from SSH_CONNECTION env which should
be the first field of that. And deliver it to the internal API so Gitea
routers could record the real IP from SSH requests.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
2022-10-11 16:57:37 +08:00
..
hook.go Fix the bug: deploy key with write access can not push (#19010) 2022-03-22 17:29:07 +08:00
internal.go log real ip of requests from ssh (#21216) 2022-10-11 16:57:37 +08:00
key.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
mail.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
manager.go Allow manager logging to set SQL (#20064) 2022-06-24 12:49:47 +02:00
restore_repo.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
serv.go Fix the bug: deploy key with write access can not push (#19010) 2022-03-22 17:29:07 +08:00