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

旧 gf 基础库引起的 绑定0.0.0.0:8080 错误 #58

Open
xgd16 opened this issue Nov 7, 2022 · 2 comments
Open

旧 gf 基础库引起的 绑定0.0.0.0:8080 错误 #58

xgd16 opened this issue Nov 7, 2022 · 2 comments

Comments

@xgd16
Copy link

xgd16 commented Nov 7, 2022

2.0.6存在无法将http修改为0.0.0.0:8080 的问题 会导致 too many colons in address 比较影响使用
建议开发者将库版本升级到 2.1.0 及以上
更换到 2.1.0 之后需要吧 _ "github.com/gogf/gf/contrib/drivers/mysql/v2" 加入到main

@xgd16
Copy link
Author

xgd16 commented Nov 7, 2022

/internal/cmd/cmd.go 目录下

"github.com/gogf/gf/v2/protocol/goai" 替换为 "github.com/gogf/gf/v2/net/goai"

@xgd16
Copy link
Author

xgd16 commented Nov 7, 2022

所有的 g.Try 修改为 g.Try(ctx, func(ctx context.Context)

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

1 participant