重构白银节点分配方式,使用手动接口精确配置节点
This commit is contained in:
@@ -57,7 +57,6 @@ func ListChannels(c *fiber.Ctx) error {
|
||||
|
||||
// 查询数据
|
||||
channels, err := q.Channel.
|
||||
Preload(q.Channel.Proxy).
|
||||
Where(cond).
|
||||
Order(q.Channel.CreatedAt.Desc()).
|
||||
Offset(req.GetOffset()).
|
||||
@@ -144,7 +143,7 @@ func CreateChannel(c *fiber.Ctx) error {
|
||||
for i, channel := range result {
|
||||
resp[i] = &CreateChannelRespItem{
|
||||
Proto: req.Protocol,
|
||||
Host: channel.Proxy.IP.String(),
|
||||
Host: channel.Host,
|
||||
Port: channel.Port,
|
||||
}
|
||||
if req.AuthType == s.ChannelAuthTypePass {
|
||||
|
||||
Reference in New Issue
Block a user