实现 gost 网关

This commit is contained in:
2026-06-08 17:24:55 +08:00
parent b00782b3f6
commit c5453557ae
13 changed files with 972 additions and 123 deletions

View File

@@ -625,7 +625,7 @@ comment on column proxy.mac is '代理服务名称';
comment on column proxy.ip is '代理服务地址';
comment on column proxy.host is '代理服务域名';
comment on column proxy.secret is '代理服务密钥';
comment on column proxy.type is '代理服务类型1-自有2-白银';
comment on column proxy.type is '代理服务类型1-自有2-白银3-GOST';
comment on column proxy.status is '代理服务状态0-离线1-在线';
comment on column proxy.meta is '代理服务元信息';
comment on column proxy.created_at is '创建时间';
@@ -640,6 +640,7 @@ create table edge (
version int not null,
mac text not null,
ip inet not null,
port int,
isp int not null,
prov text not null,
city text not null,
@@ -659,10 +660,11 @@ create index idx_edge_created_at on edge (created_at) where deleted_at is null;
-- edge表字段注释
comment on table edge is '节点表';
comment on column edge.id is '节点ID';
comment on column edge.type is '节点类型1-自建';
comment on column edge.type is '节点类型1-自建2-GOST chain';
comment on column edge.version is '节点版本';
comment on column edge.mac is '节点 mac 地址';
comment on column edge.ip is '节点地址';
comment on column edge.mac is '节点 mac 地址或 GOST chain 名称';
comment on column edge.ip is '节点地址或 GOST chain addr 的 IP';
comment on column edge.port is 'GOST chain addr 的端口';
comment on column edge.isp is '运营商1-电信2-联通3-移动';
comment on column edge.prov is '省份';
comment on column edge.city is '城市';