This commit is contained in:
aozhiwei 2024-08-30 17:18:04 +08:00
parent 2bf64f4b70
commit 13f4c0cca4
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,10 @@ func (this *ConfigTable) GetRedirectUrl() string {
return this.selfConf.GetRedirectUrl() return this.selfConf.GetRedirectUrl()
} }
func (this *ConfigTable) GetRedirectHost() string {
return this.selfConf.GetRedirectUrl()
}
func (this *ConfigTable) GetSecretKey() string { func (this *ConfigTable) GetSecretKey() string {
return this.selfConf.GetSecretKey() return this.selfConf.GetSecretKey()
} }

View File

@ -226,5 +226,5 @@ func (this *sApiForward) GetDownStreamHost() (string, string) {
return mt.Table.Config.GetRedirectUrl(), "" return mt.Table.Config.GetRedirectUrl(), ""
} }
downStream := downStreams[rand.Intn(len(downStreams))] downStream := downStreams[rand.Intn(len(downStreams))]
return downStream.url, downStream.host return downStream.url, mt.Table.Config.GetRedirectHost()
} }