feat(node): update Hysteria protocol to use new naming convention

This commit is contained in:
Chang lue Tsen 2025-09-29 11:29:34 -04:00
parent 3fb23e3106
commit c835e751ac
3 changed files with 3 additions and 2 deletions

View File

@ -230,7 +230,7 @@ func (l *MigrateServerNodeLogic) adapterServer(info *server.Server) (*node.Serve
return nil, err return nil, err
} }
protocol := node.Protocol{ protocol := node.Protocol{
Type: "hysteria2", Type: "hysteria",
Port: uint16(src.Port), Port: uint16(src.Port),
HopPorts: src.HopPorts, HopPorts: src.HopPorts,
HopInterval: src.HopInterval, HopInterval: src.HopInterval,

View File

@ -8,6 +8,7 @@ const (
Trojan = "trojan" Trojan = "trojan"
AnyTLS = "anytls" AnyTLS = "anytls"
Tuic = "tuic" Tuic = "tuic"
Hysteria = "hysteria"
Hysteria2 = "hysteria2" Hysteria2 = "hysteria2"
) )

View File

@ -209,7 +209,7 @@ func (l *GetServerConfigLogic) compatible(config node.Protocol) map[string]inter
RealityShortId: config.RealityShortId, RealityShortId: config.RealityShortId,
}, },
} }
case Hysteria2: case Hysteria2, Hysteria:
result = Hysteria2Node{ result = Hysteria2Node{
Port: config.Port, Port: config.Port,
HopPorts: config.HopPorts, HopPorts: config.HopPorts,