Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis.Dial()报错,没有解析到正确的Redis服务器 #37

Closed
xiaotianhu opened this issue Nov 4, 2015 · 3 comments
Closed

Redis.Dial()报错,没有解析到正确的Redis服务器 #37

xiaotianhu opened this issue Nov 4, 2015 · 3 comments

Comments

@xiaotianhu
Copy link

Message模块配置Redis为不带密码的情况下,会跳转到Messge/redis.go的91行
log.Error("redis.Dial("%s", "%s") error(%v)", tmpProto, tmpAddr, err)
变量tmpProto和tmpAddr都是空

@xiaotianhu
Copy link
Author

把61行 reg := regexp.MustCompile("(.+)@(.+)#(.+)|(.+)@(.+)")
改为 reg := regexp.MustCompile("(.+)@(.+)")
只匹配不带密码情况的Redis 因为单机使用只监听了127.0.0.1 问题解决

@Terry-Mao
Copy link
Owner

能否提一个patch过来。我直接merge

@mecaocao
Copy link

mecaocao commented Jan 9, 2016

@xiaotianhu,的确是因为这个问题搞的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants