Skip to content

Commit 7c08416

Browse files
committed
Use req.socket.servername instead of req.connection.servername because it's deprecated now
1 parent 6a799ae commit 7c08416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ app.all('/{*splat}', (req, res) => {
117117
hostname: os.hostname()
118118
},
119119
connection: {
120-
servername: req.connection.servername
120+
servername: req.socket.servername
121121
}
122122
};
123123

0 commit comments

Comments
 (0)