Skip to content

Commit 73a9393

Browse files
author
Alan Shaw
committed
If the address is omitted or is an empty string, '0.0.0.0' or '::0' is used instead. Depending on the network configuration, those defaults may or may not work; it's best to be explicit about the destination address.
1 parent ba197c1 commit 73a9393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/ping_bell/exercise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exercise.addVerifyProcessor(function (callback) {
5252

5353
var buffer = new Buffer('HAI!?')
5454

55-
dgram.createSocket('udp4').send(buffer, 0, buffer.length, 1337)
55+
dgram.createSocket('udp4').send(buffer, 0, buffer.length, 1337, '127.0.0.1')
5656

5757
// Allow some time for the udp packet to reach server and sound to be played
5858
setTimeout(function () {

0 commit comments

Comments
 (0)