1
This commit is contained in:
parent
2bf64f4b70
commit
13f4c0cca4
@ -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()
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user