mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 04:55:59 +08:00
Error code standardization
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package network
|
||||
|
||||
import utils "github.com/OpenIMSDK/open_utils"
|
||||
|
||||
func GetRpcIP(configIP string) (string, error) {
|
||||
registerIP := configIP
|
||||
if registerIP == "" {
|
||||
ip, err := utils.GetLocalIP()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
registerIP = ip
|
||||
}
|
||||
return registerIP, nil
|
||||
}
|
||||
Reference in New Issue
Block a user