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
}
protocol := node.Protocol{
Type: "hysteria2",
Type: "hysteria",
Port: uint16(src.Port),
HopPorts: src.HopPorts,
HopInterval: src.HopInterval,

View File

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

View File

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