mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
fix: direct conn cannot find name
This commit is contained in:
parent
c0677edd6b
commit
c019f2566b
@ -14,17 +14,16 @@ import (
|
||||
type ServiceAddresses map[string]string
|
||||
|
||||
func getServiceAddresses() ServiceAddresses {
|
||||
fmt.Println("!!!!!!!!!!!!", fmt.Sprintf(config2.Config.RpcRegisterName.OpenImUserName+":%d", config2.Config.RpcPort.OpenImUserPort[0]))
|
||||
return ServiceAddresses{
|
||||
"User": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImUserName+":%d", config2.Config.RpcPort.OpenImUserPort[0]),
|
||||
"Friend": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImFriendName+":%d", config2.Config.RpcPort.OpenImFriendPort[0]),
|
||||
"Message": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImMsgName+":%d", config2.Config.RpcPort.OpenImMessagePort[0]),
|
||||
"MessageGateway": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImMessageGatewayName+":%d", config2.Config.LongConnSvr.OpenImMessageGatewayPort[0]),
|
||||
"Group": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImGroupName+":%d", config2.Config.RpcPort.OpenImGroupPort[0]),
|
||||
"Auth": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImAuthName+":%d", config2.Config.RpcPort.OpenImAuthPort[0]),
|
||||
"Push": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImPushName+":%d", config2.Config.RpcPort.OpenImPushPort[0]),
|
||||
"Conversation": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImConversationName+":%d", config2.Config.RpcPort.OpenImConversationPort[0]),
|
||||
"Third": fmt.Sprintf(config2.Config.RpcRegisterName.OpenImThirdName+":%d", config2.Config.RpcPort.OpenImThirdPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImUserName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImUserName+":%d", config2.Config.RpcPort.OpenImUserPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImFriendName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImFriendName+":%d", config2.Config.RpcPort.OpenImFriendPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImMsgName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImMsgName+":%d", config2.Config.RpcPort.OpenImMessagePort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImMessageGatewayName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImMessageGatewayName+":%d", config2.Config.LongConnSvr.OpenImMessageGatewayPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImGroupName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImGroupName+":%d", config2.Config.RpcPort.OpenImGroupPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImAuthName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImAuthName+":%d", config2.Config.RpcPort.OpenImAuthPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImPushName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImPushName+":%d", config2.Config.RpcPort.OpenImPushPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImConversationName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImConversationName+":%d", config2.Config.RpcPort.OpenImConversationPort[0]),
|
||||
config2.Config.RpcRegisterName.OpenImThirdName: fmt.Sprintf(config2.Config.RpcRegisterName.OpenImThirdName+":%d", config2.Config.RpcPort.OpenImThirdPort[0]),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user