修正基本认证解码方式;添加查询 channels 接口

This commit is contained in:
2025-04-28 11:44:54 +08:00
parent 370362b0d5
commit 2fa8b4d540
5 changed files with 107 additions and 26 deletions

View File

@@ -620,6 +620,7 @@ func assignPort(
UserID: userId,
ProxyID: proxy.ID,
UserHost: item,
ProxyHost: proxy.Host,
ProxyPort: int32(port),
AuthIP: true,
AuthPass: false,
@@ -639,6 +640,7 @@ func assignPort(
channels = append(channels, &models.Channel{
UserID: userId,
ProxyID: proxy.ID,
ProxyHost: proxy.Host,
ProxyPort: int32(port),
AuthIP: false,
AuthPass: true,
@@ -654,6 +656,8 @@ func assignPort(
Username: &username,
Password: &password,
})
default:
return nil, nil, ChannelServiceErr("不支持的通道认证方式")
}
}