Skip to content

Commit

Permalink
fixing udp stream listening on wrong port
Browse files Browse the repository at this point in the history
  • Loading branch information
yusing committed Sep 21, 2024
1 parent 9a81b13 commit ab2dc26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ services:
container_name: pal
stop_grace_period: 30s
ports:
- 8211
- 27015
- 8211/udp
- 27015/udp
labels:
- proxy.aliases=pal1,pal2
- proxy.*.scheme=udp
Expand Down
2 changes: 1 addition & 1 deletion src/route/udp_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewUDPRoute(base *StreamRoute) StreamImpl {
}

func (route *UDPRoute) Setup() error {
laddr, err := net.ResolveUDPAddr(string(route.Scheme.ListeningScheme), fmt.Sprintf(":%v", route.Port.ProxyPort))
laddr, err := net.ResolveUDPAddr(string(route.Scheme.ListeningScheme), fmt.Sprintf(":%v", route.Port.ListeningPort))
if err != nil {
return err
}
Expand Down

0 comments on commit ab2dc26

Please sign in to comment.