chore(deps): update Go dependencies

- Update all dependencies to latest versions

- Upgrade touka to break/v1 branch

- Migrate from RunShutdown to Run with graceful shutdown options

- Use functional options pattern: WithAddr and WithGracefulShutdownDefault
This commit is contained in:
wjqserver 2026-04-11 22:34:32 +08:00
parent 32baca85db
commit 3d01d4cd15
7 changed files with 51 additions and 46 deletions

View file

@ -72,7 +72,7 @@ func newProxyDial(proxyUrls string) proxy.Dialer {
var proxyDialer proxy.Dialer = proxy.Direct // 初始为直接连接,不使用代理
// 支持多个代理 URL以逗号分隔
for _, proxyUrl := range strings.Split(proxyUrls, ",") {
for proxyUrl := range strings.SplitSeq(proxyUrls, ",") {
proxyUrl = strings.TrimSpace(proxyUrl) // 去除首尾空格
if proxyUrl == "" { // 跳过空的代理 URL
continue