feat(node): update Hysteria protocol to use new naming convention
This commit is contained in:
parent
3fb23e3106
commit
c835e751ac
@ -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,
|
||||||
|
|||||||
@ -8,6 +8,7 @@ const (
|
|||||||
Trojan = "trojan"
|
Trojan = "trojan"
|
||||||
AnyTLS = "anytls"
|
AnyTLS = "anytls"
|
||||||
Tuic = "tuic"
|
Tuic = "tuic"
|
||||||
|
Hysteria = "hysteria"
|
||||||
Hysteria2 = "hysteria2"
|
Hysteria2 = "hysteria2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user