Skip to content

Commit 8b7d536

Browse files
committed
improve code and app.ini.sample
1 parent fb69cf2 commit 8b7d536

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

custom/conf/app.ini.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ SKIP_TLS_VERIFY = false
513513
PAGING_NUM = 10
514514
; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy
515515
PROXY_URL =
516-
; All request hosts needed to proxy, you could use * to match the hosts.
516+
; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
517517
PROXY_HOSTS =
518518

519519
[mailer]

modules/webhook/deliver.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,6 @@ func webhookProxy() func(req *http.Request) (*url.URL, error) {
206206
})
207207

208208
return func(req *http.Request) (*url.URL, error) {
209-
if len(setting.Webhook.ProxyHosts) == 1 && setting.Webhook.ProxyHosts[0] == "*" {
210-
return http.ProxyURL(setting.Webhook.ProxyURLFixed)(req)
211-
}
212-
213209
for _, v := range hostMatchers {
214210
if v.Match(req.URL.Host) {
215211
return http.ProxyURL(setting.Webhook.ProxyURLFixed)(req)

0 commit comments

Comments
 (0)