mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-01 19:06:52 +00:00
修复转换bug
This commit is contained in:
2
http.go
2
http.go
@@ -104,7 +104,7 @@ func getHost(str string) (string, error) {
|
||||
func replaceHost(resp []byte) []byte {
|
||||
str := string(resp)
|
||||
for _, v := range config.SiteList {
|
||||
str = strings.Replace(str, v.Url+":"+string(v.Port), v.Host, -1)
|
||||
str = strings.Replace(str, v.Url+":"+strconv.Itoa(v.Port), v.Host, -1)
|
||||
str = strings.Replace(str, v.Url, v.Host, -1)
|
||||
}
|
||||
return []byte(str)
|
||||
|
Reference in New Issue
Block a user