]> source.dussan.org Git - gitea.git/commit
Support allowed hosts for migrations to work with proxy (#32025) (#32026)
authorGiteabot <teabot@gitea.io>
Wed, 11 Sep 2024 06:54:19 +0000 (14:54 +0800)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2024 06:54:19 +0000 (14:54 +0800)
commit0629c08a6df6c97129dc22308c85e80500edc9b1
treea35bb753b76fa20c047107f4ac1120688cf1dd7b
parent54d828f8ec7cd0abf82c830a2ad31d348e598807
Support allowed hosts for migrations to work with proxy (#32025) (#32026)

Backport #32025 by @wolfogre

Fix #32024. Follow #27655.

After this PR, all usage of "new dial context" needs to provide a proxy,
so I dropped the old `NewDialContext` and renamed
`NewDialContextWithProxy` to `NewDialContext`.

Co-authored-by: Jason Song <i@wolfogre.com>
modules/hostmatcher/http.go
services/migrations/http_client.go
services/migrations/migrate.go
services/webhook/deliver.go