1
0
mirror of https://github.com/fatedier/frp.git synced 2025-05-29 19:48:25 +00:00

fix(server): listen udp port failed ()

fix 
This commit is contained in:
Chotow 2021-03-18 11:05:03 +08:00 committed by GitHub
parent 9f8db314d6
commit 0ff27fc9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)