mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 16:21:11 +08:00
Update match.go
This commit is contained in:
parent
4fa91b67cf
commit
1efd9e26b2
1 changed files with 3 additions and 3 deletions
|
|
@ -181,9 +181,9 @@ func modifyURL(url string, host string, cfg *config.Config) string {
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
if matched {
|
if matched {
|
||||||
|
var u = url
|
||||||
u := strings.TrimPrefix(url, "https://")
|
u := strings.TrimPrefix(u, "https://")
|
||||||
u = strings.TrimPrefix(url, "http://")
|
u = strings.TrimPrefix(u, "http://")
|
||||||
logDump("Modified URL: %s", "https://"+host+"/"+u)
|
logDump("Modified URL: %s", "https://"+host+"/"+u)
|
||||||
return "https://" + host + "/" + u
|
return "https://" + host + "/" + u
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue