Skip to content

Commit e2cc0a7

Browse files
committed
fix inbound hys multi ports cannot start
1 parent 6c57732 commit e2cc0a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/inbound/proxy/inbound_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func NewInboundServer(config *configs.ProxyInboundConfig, ha i.Handler, router i
7777
if hysteriaConfig != nil {
7878
hasHys = true
7979
in, err := hysteria2.NewInbound(&hysteria2.InboundConfig{
80-
Ports: ports,
80+
Ports: []uint16{port},
8181
Hysteria2ServerConfig: hysteriaConfig,
8282
InStats: inStats,
8383
Tag: config.Tag,

app/inbound/proxy/multi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewMultiInboundServer(config *configs.MultiProxyInboundConfig, ha i.Handler
6767
for _, port := range ports {
6868
if hysteriaConfig != nil {
6969
in, err := hysteria2.NewInbound(&hysteria2.InboundConfig{
70-
Ports: ports,
70+
Ports: []uint16{port},
7171
Hysteria2ServerConfig: hysteriaConfig,
7272
InStats: inStats,
7373
Tag: config.Tag,

0 commit comments

Comments
 (0)