Skip to content

Commit 0150982

Browse files
committed
:: is already the default for node's http
1 parent 0ccc7fe commit 0150982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Server.prototype.listen = function (/* port, hostname, onlistening */) {
157157

158158
// binding to :: only receives IPv4 connections if the bindv6only sysctl is set 0,
159159
// which is the default on many operating systems
160-
var httpHostname = isObject(hostname) ? hostname.http : (hostname || '::')
160+
var httpHostname = isObject(hostname) ? hostname.http : hostname
161161
var udp4Hostname = isObject(hostname) ? hostname.udp : hostname
162162
var udp6Hostname = isObject(hostname) ? hostname.udp6 : hostname
163163

0 commit comments

Comments
 (0)