Skip to content

Commit ed1d639

Browse files
author
Jesse Ditson
committed
add path to logged URLs
1 parent 415e1c3 commit ed1d639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/http-server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ function listen(port) {
136136
].join(''));
137137

138138
if (argv.a && host !== '0.0.0.0') {
139-
logger.info((' ' + protocol + canonicalHost + ':' + colors.green(port.toString())));
139+
logger.info((' ' + protocol + canonicalHost + ':' + colors.green(port.toString()) + path));
140140
}
141141
else {
142142
Object.keys(ifaces).forEach(function (dev) {
143143
ifaces[dev].forEach(function (details) {
144144
if (details.family === 'IPv4') {
145-
logger.info((' ' + protocol + details.address + ':' + colors.green(port.toString())));
145+
logger.info((' ' + protocol + details.address + ':' + colors.green(port.toString()) + path));
146146
}
147147
});
148148
});

0 commit comments

Comments
 (0)