Skip to content

Commit

Permalink
Fix listening port not honored
Browse files Browse the repository at this point in the history
  • Loading branch information
duyleekun committed Jun 24, 2021
1 parent 9c7b886 commit 7dbb4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgapi/mywgserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (s *WGServer) configureDevice() {

pk, err := wgtypes.GeneratePrivateKey()

listenPort := 51820
listenPort := s.endpoint.Port

err = c.ConfigureDevice(s.iface, wgtypes.Config{
PrivateKey: &pk,
Expand Down

0 comments on commit 7dbb4cc

Please sign in to comment.