mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 09:12:12 +08:00
修复转换bug
This commit is contained in:
1 parent
5f8df0d581
commit
ef9bfa3290
1 file changed
+1
-1
@@ -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