Skip to content

Commit

Permalink
cmd/bootnode: defer udp connection close (#27787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar authored and zfliex924 committed Aug 21, 2023
1 parent 56e08a9 commit e34554a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func main() {
if err != nil {
utils.Fatalf("-ListenUDP: %v", err)
}
defer conn.Close()

realaddr := conn.LocalAddr().(*net.UDPAddr)
if natm != nil {
Expand Down

0 comments on commit e34554a

Please sign in to comment.