Skip to content

Commit

Permalink
Start listening range at 1024 instead of 1
Browse files Browse the repository at this point in the history
Avoid privileged ports by default

Closes #651
  • Loading branch information
dirkx authored and Sean-Der committed Mar 20, 2024
1 parent 5fcf038 commit 970978e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func listenUDPInPortRange(n transport.Net, log logging.LeveledLogger, portMax, p
var i, j int
i = portMin
if i == 0 {
i = 1
i = 1024 // Start at 1024 which is non-privileged
}
j = portMax
if j == 0 {
Expand Down

0 comments on commit 970978e

Please sign in to comment.