mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
修复转换bug
This commit is contained in:
parent
5f8df0d581
commit
ef9bfa3290
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user