diff --git a/server/gamesapi/mt/Config.go b/server/gamesapi/mt/Config.go index 6f3cde3a..42b79adb 100644 --- a/server/gamesapi/mt/Config.go +++ b/server/gamesapi/mt/Config.go @@ -22,6 +22,10 @@ func (this *ConfigTable) GetRedirectUrl() string { return this.selfConf.GetRedirectUrl() } +func (this *ConfigTable) GetRedirectHost() string { + return this.selfConf.GetRedirectUrl() +} + func (this *ConfigTable) GetSecretKey() string { return this.selfConf.GetSecretKey() } diff --git a/server/gamesapi/service/sapi_forward.go b/server/gamesapi/service/sapi_forward.go index eefae82d..d5ca2fe7 100644 --- a/server/gamesapi/service/sapi_forward.go +++ b/server/gamesapi/service/sapi_forward.go @@ -226,5 +226,5 @@ func (this *sApiForward) GetDownStreamHost() (string, string) { return mt.Table.Config.GetRedirectUrl(), "" } downStream := downStreams[rand.Intn(len(downStreams))] - return downStream.url, downStream.host + return downStream.url, mt.Table.Config.GetRedirectHost() }