Skip to content

Commit

Permalink
fix(server): listen udp port failed (#2308)
Browse files Browse the repository at this point in the history
fix #2306
  • Loading branch information
choyri authored Mar 18, 2021
1 parent 9f8db31 commit 0ff27fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func NewService(cfg config.ServerCommonConf) (svr *Service, err error) {
// Create nat hole controller.
if cfg.BindUDPPort > 0 {
var nc *nathole.Controller
address := net.JoinHostPort(cfg.BindAddr, strconv.Itoa(cfg.BindPort))
address := net.JoinHostPort(cfg.BindAddr, strconv.Itoa(cfg.BindUDPPort))
nc, err = nathole.NewController(address)
if err != nil {
err = fmt.Errorf("Create nat hole controller error, %v", err)
Expand Down

0 comments on commit 0ff27fc

Please sign in to comment.