Commit 5290d57
authored
fix: 🐛 修复 proxy_url SOCKS scheme 验证及 fetch-model 未传递 channel_proxy (#197)
* fix: 🐛 proxy_url 验证增加 socks5 scheme 支持
setting.go 验证白名单只有 socks,但 golang.org/x/net/proxy.FromURL()
只认 socks5,导致 SOCKS 代理无论怎么填都无法使用。
增加 socks5 到验证白名单。
* fix: 🐛 fetch-model 请求传递 channel_proxy 字段
FetchModelRequest 类型缺少 channel_proxy 字段,导致 fetch-model
请求不传该值,后端 ChannelProxy 始终为 nil,即使渠道已配置
channel_proxy 也会回退到系统代理并报 proxy url is empty。
fix #185 fix #1861 parent fe78790 commit 5290d57
File tree
3 files changed
+7
-4
lines changed- internal/model
- web/src
- api/endpoints
- components/modules/channel
3 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments