From 40c6e838dff37d0ccbc95ef28caac13f27a5238f Mon Sep 17 00:00:00 2001 From: Voltrex Date: Tue, 29 Jun 2021 05:20:00 +0430 Subject: [PATCH] dgram: tighten `address` validation in `socket.send` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39190 Reviewed-By: Antoine du Hamel Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- doc/api/dgram.md | 6 +++++- lib/dgram.js | 4 ++-- .../parallel/test-dgram-send-address-types.js | 20 +++++++++++++++---- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index da267926f37cd1..53df74120849d5 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -468,6 +468,10 @@ if the socket is not connected.