移除不必要的 user_host 字段及相关索引;优化通道缓存方式,直接缓存通道授权信息

This commit is contained in:
2025-05-12 17:04:20 +08:00
parent 2c37dcc2be
commit 2be1a18e91
5 changed files with 43 additions and 68 deletions

View File

@@ -628,7 +628,6 @@ create table channel (
node_host varchar(255),
protocol int,
auth_ip bool not null default false,
user_host varchar(255),
auth_pass bool not null default false,
username varchar(255),
password varchar(255),
@@ -644,7 +643,6 @@ create index channel_proxy_host_index on channel (proxy_host);
create index channel_proxy_port_index on channel (proxy_port);
create index channel_node_host_index on channel (node_host);
create index channel_auth_ip_index on channel (auth_ip);
create index channel_user_host_index on channel (user_host);
create index channel_auth_pass_index on channel (auth_pass);
create index channel_username_index on channel (username);
create index channel_expiration_index on channel (expiration);
@@ -661,7 +659,6 @@ comment on column channel.proxy_port is '转发端口';
comment on column channel.node_host is '节点地址';
comment on column channel.protocol is '协议类型1-http2-https3-socks5';
comment on column channel.auth_ip is 'IP认证';
comment on column channel.user_host is '用户地址';
comment on column channel.auth_pass is '密码认证';
comment on column channel.username is '用户名';
comment on column channel.password is '密码';