修正基本认证解码方式;添加查询 channels 接口
This commit is contained in:
@@ -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("不支持的通道认证方式")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user